ColorTools[Color] - Maple Programming Help

Home : Support : Online Help : Graphics : Packages : ColorTools : Color and Color Object Manipulation Commands : ColorTools/Color/ToPlotColor

ColorTools[Color]

 ToPlotColor
 convert a Color object into a plot color data structure

 Calling Sequence ToPlotColor(color)

Parameters

 color - Color object created with ColorTools[Color]

Description

 • The ToPlotColor command converts a Color object into a plot color data structure.  See plot/structure.

Examples

 > $c≔\mathrm{ColorTools}:-\mathrm{Color}\left("gold"\right)$
 ${c}{≔}{⟨}\colorbox[rgb]{0.8,0.498039215686275,0.196078431372549}{RGB : 0.8 0.498 0.196}{⟩}$ (1)
 > $\mathrm{ToPlotColor}\left(c\right)$
 ${\mathrm{COLOR}}{}\left({\mathrm{RGB}}{,}{0.7999999999}{,}{0.4980392156}{,}{0.1960784314}\right)$ (2)

Compatibility

 • The ColorTools[Color][ToPlotColor] command was introduced in Maple 2017.