ColorTools[Color]
ToRGB
retrieve the RGB triple of a Color object
Calling Sequence
Parameters
Description
Examples
Compatibility
ToRGB(color)
color
-
Color object created with ColorTools[Color]
The ToRGB command returns the RGB floats from 0. to 1.0 of a Color object as a list.
p≔ColorTools:-Color⁡pink
p≔〈RGB : 1 0.753 0.796〉
ToRGB⁡p
1.0000000,0.75294118,0.79607843
r≔ColorTools:-Color⁡HSV,red
r≔〈HSV : 0 1 1〉
ToRGB⁡r
1.0000000,0.,0.
The ColorTools[Color][ToRGB] command was introduced in Maple 2017.
For more information on Maple 2017 changes, see Updates in Maple 2017.
See Also
Download Help Document