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.... |
Home BasePack SDLColors Procedures and Functions WavelengthToColor | |||||||||
See also: RandomColor | |||||||||
WavelengthToColor |
|||||||||
The function WavelengthToColor calculates the approximate color for a given walength. The parameter wl is the wavelength in nm, the parameter gamma specifies the gamma value of the monitor (typical gamma values are around 2.0). The following figure shows the color spectrum generated by WavelengthToColor using different gamma values.
|