ColorTools - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Graphics : Packages : ColorTools : ColorTools/RGBToRGB24

ColorTools

  

RGBToRGB24

  

convert floating-point RGB to 24-bit color value

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

RGBToRGB24(fl)

Parameters

fl

-

list; list of 3 float values between 0-1 that represent a color

Description

• 

The RGBToRGB24 command converts from a float RGB color to a 24-bit RGB color. If the input is not a valid float color, an error is thrown.

Examples

withColorTools:

RGBToRGB241.,1.,0.

255,255,0

(1)

RGBToRGB240,0.001,0

Error, (in ColorTools:-RGBToRGB24) invalid float color value: [0, -.1e-2, 0]

Compatibility

• 

The ColorTools[RGBToRGB24] command was introduced in Maple 16.

• 

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

See Also

ColorTools