convert 24-bit color to floating-point values - Maple Help

Online Help

All Products    Maple    MapleSim


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

ColorTools[RGB24ToRGB] - convert 24-bit color to floating-point values

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]

See Also

ColorTools


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam