ColorTools
WavelengthToColor
create a color corresponding to a wavelength of light
Calling Sequence
Parameters
Options
Description
Examples
Compatibility
WavelengthToColor(wavelength, opts)
wavelength
-
in nanometers
opts
(optional) equation(s) of the form option=value where option is either method or space
method = "linear" or "table"
Choose between a more accurate table lookup conversion (the default) and a common linear approximation.
space=string designating a known color space
Specify an output color space other than "RGB".
The WavelengthToColor command creates a new Color structure which corresponds to the color of a light with the given wavelength. Wavelengths that do not correspond to visible colors will return as black.
with⁡ColorTools:
WavelengthToColor⁡300
〈RGB : 0 0 0〉
WavelengthToColor⁡570
〈RGB : 1 0.878 0〉
WavelengthToColor⁡570,method=linear
〈RGB : 0.857 1 0〉
The ColorTools[WavelengthToColor] command was introduced in Maple 18.
For more information on Maple 18 changes, see Updates in Maple 18.
See Also
ColorTools/ColorSpaces
ColorTools[Color]
Download Help Document