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

Online Help

All Products    Maple    MapleSim


ColorTools

  

RGB24ToRGB

  

convert 24-bit color to floating-point values

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

RGB24ToRGB(rgb)

Parameters

rgb

-

list; [r,g,b] color values, integer values 0-255

Description

• 

The RGB24ToRGB procedure converts from RGB color values to RGB floats. If the input is not a valid RGB color, an error is thrown.

Examples

withColorTools:

RGB24ToRGB0,127,255

0.,0.49803922,1.00000000

(1)

RGB24ToRGB0,256,255

Error, (in ColorTools:-RGB24ToRGB) invalid RGB color value: [0, 256, 255]

Compatibility

• 

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

• 

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

See Also

ColorTools