ColorTools - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Graphics : Packages : ColorTools : Color Format Conversion Commands : ColorTools/WavelengthToColor

ColorTools

  

WavelengthToColor

  

create a color corresponding to a wavelength of light

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

Calling Sequence

WavelengthToColor(wavelength)

Parameters

wavelength

-

in nanometers

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]