ColorTools
RGB24ToRGB
convert 24-bit color to floating-point values
Calling Sequence
Parameters
Description
Examples
Compatibility
RGB24ToRGB(rgb)
rgb
-
list; [r,g,b] color values, integer values 0-255
The RGB24ToRGB procedure converts from RGB color values to RGB floats. If the input is not a valid RGB color, an error is thrown.
with⁡ColorTools:
RGB24ToRGB⁡0,127,255
0.,0.49803922,1.00000000
RGB24ToRGB⁡0,256,255
Error, (in ColorTools:-RGB24ToRGB) invalid RGB color value: [0, 256, 255]
The ColorTools[RGB24ToRGB] command was introduced in Maple 16.
For more information on Maple 16 changes, see Updates in Maple 16.
See Also
Download Help Document