ColorTools
ToRGB24
convert a color format to a list of RGB values
Calling Sequence
Parameters
Description
Examples
Compatibility
ToRGB24( input )
ToRGB24( input, colorspace )
input
-
color format recognized by ColorTools
colorspace
string specifying the color space of the input coordinates
The ToRGB24 procedure converts from any of the color formats recognized by ColorTools to a list of integer RGB values. If the input cannot be recognized as a color, an error is thrown.
In the second calling sequence, the input must be a list of coordinates in the color space specified by colorspace. For information on known color spaces, see ColorTools/ColorSpaces.
with⁡ColorTools:
ToRGB24⁡Red
255,0,0
ToRGB24⁡red
ToRGB24⁡Color⁡HSV,0.,1.,1.
ToRGB24⁡0,1,1,HSV
ToRGB24⁡255,0,0
A list of 0 and 1 integers is ambiguous. ToRGB24 will treat them as floats.
ToRGB24⁡0.,1.,0.
0,255,0
ToRGB24⁡0,1,0
The ColorTools[ToRGB24] command was introduced in Maple 16.
For more information on Maple 16 changes, see Updates in Maple 16.
See Also
ColorTools/ColorSpaces
ColorTools[Color]
Download Help Document