WavelengthToColor - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


ColorTools

  

WavelengthToColor

  

create a color corresponding to a wavelength of light

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

Calling Sequence

WavelengthToColor(wavelength, opts)

Parameters

wavelength

-

in nanometers

opts

-

(optional) equation(s) of the form option=value where option is either method or space

Options

• 

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".

Description

• 

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.

Examples

withColorTools:

WavelengthToColor300

RGB : 0 0 0

(1)

WavelengthToColor570

RGB : 1 0.878 0

(2)

WavelengthToColor570,method=linear

RGB : 0.857 1 0

(3)

Compatibility

• 

The ColorTools[WavelengthToColor] command was introduced in Maple 18.

• 

For more information on Maple 18 changes, see Updates in Maple 18.

See Also

ColorTools

ColorTools/ColorSpaces

ColorTools[Color]