PlotColorToRGB24 - Maple Help

ColorTools

 PlotColorToRGB24
 convert plot color to RGB

 Calling Sequence PlotColorToRGB24(color)

Parameters

 color - plot color data structure

Description

 • The PlotColorToRGB24 command converts any valid plot color data structure into a 24-bit RGB value.  For information on the color data structure, see plot/structure.
 • If color represents a single color, a list of three RGB

Examples

 > $\mathrm{with}\left(\mathrm{ColorTools}\right):$
 > $\mathrm{PlotColorToRGB24}\left(\mathrm{COLOR}\left(\mathrm{RGB},1.,0.,0.\right)\right)$
 $\left[{255}{,}{0}{,}{0}\right]$ (1)
 > $\mathrm{PlotColorToRGB24}\left(\mathrm{COLOR}\left(\mathrm{HSV},0.,1.,1.\right)\right)$
 $\left[{255}{,}{0}{,}{0}\right]$ (2)
 > $\mathrm{PlotColorToRGB24}\left(\mathrm{COLOR}\left(\mathrm{HUE},0.\right)\right)$
 $\left[{255}{,}{0}{,}{0}\right]$ (3)

Compatibility

 • The ColorTools[PlotColorToRGB24] command was introduced in Maple 16.
 • For more information on Maple 16 changes, see Updates in Maple 16.