On Thursday 2010-09-02 21:41:05 +0100, Robert Norris wrote: > 1. In the calculation of the colour used (especially for the height mode) > what is the point of the '+1' here: > vdl->gcsgradient[(gint)floor((change - vdl->min_elev)/(vdl->max_elev - > vdl->min_elev)*(DEM_N_GRADIENT_COLORS-2))+1] > > If it is removed, it means when you increase the min elevation, elevations > below this level drawn using the zero index i.e. in blue. > Hence it's then like rising sea levels and a global warming simulator! > Looks much better than the default brown.
That may be an accidental commit by me. When I wrote the gradient mode, I also did a lot of experimenting. David
pgp56WPJ5GGor.pgp
Description: PGP signature
------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________ Viking-devel mailing list Viking-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/viking-devel Viking home page: http://viking.sf.net/