RGBToRGB24 - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


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 floating-point values between 0 and 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.01,0

Error, (in ColorTools:-RGBToRGB24) invalid float color value: [0, -.1e-1, 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