Description Determines the color of a specified wavelength of light.
Syntax WavelengthToRGB wavelength, r, g, b
Parameters wavelength As Double The wavelength (in microns) to be convert to RGB values.
r As Integer The red value of the wavelength color.
g As Integer The green value of the wavelength color.
b As Integer The blue value of the wavelength color.
Remarks This subroutine determines the color of a specified wavelength of light. r,g,b values are in the range of 0 (black) to 255 (bright). No errors are reported. If the wavelength is less than 0.350 microns the color is set to (25, 0, 102), a deep blue/violet. If it is greater than 0.750 microns the color is set to (102, 0, 0), a dark red.
See Also
|