ColorTools[Color] - Maple Programming Help

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

ColorTools[Color]

 Hue
 retrieve the hue of a Color object

 Calling Sequence Hue(color)

Parameters

 color - Color object created with ColorTools[Color]

Description

 • The Hue command returns the hue of a Color object, which is the angle scaled from $0.$ to $1.0$ around the RGB color wheel where red is $0$, green is $\frac{1}{3}$, and blue is $\frac{2}{3}$.

Examples

 > $c≔\mathrm{ColorTools}:-\mathrm{Color}\left("red"\right)$
 ${c}{≔}{⟨}\colorbox[rgb]{1,0,0}{{RGB : 1 0 0}}{⟩}$ (1)
 > $\mathrm{Hue}\left(c\right)$
 ${0.}$ (2)
 > $c≔\mathrm{ColorTools}:-\mathrm{Desaturate}\left(c,0.5\right)$
 ${c}{≔}{⟨}\colorbox[rgb]{1,0.501960784313725,0.501960784313725}{RGB : 1 0.5 0.5}{⟩}$ (3)
 > $\mathrm{Hue}\left(c\right)$
 ${0.}$ (4)
 > $\mathrm{Hue}\left(\mathrm{ColorTools}:-\mathrm{Color}\left("black"\right)\right)$
 ${Float}{}\left({\mathrm{undefined}}\right)$ (5)

Compatibility

 • The ColorTools[Color][Hue] command was introduced in Maple 2017.
 • For more information on Maple 2017 changes, see Updates in Maple 2017.