The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Unit: SDL_colorscale
Class: TColorScale
Declaration: function ValueToColor (v: double): TColor;

The method ValueToColor returns the color which is represents the value v. If v is outside the range of the color scale (i.e. below ColorLow or above ColorHigh) the returned color value is ColorArray[1] or ColorArray[ColorArray.Size], respectively.

Example: This method is used in the following example program (see for downloading the code): colscale

Last Update: 2014-Aug-14