ColorTools - Maple Programming Help

ColorTools

 create a number of colors with evenly spaced hues

Parameters

 color - color format recognized by ColorTools number - positive integer; number of colors to return (the default is 5) step - positive number less than 1; amount by which the hues of adjacent colors should differ (the default is 1/6)

Description

 • The command HueSpread generates a list of evenly spaced colors around the HSV color wheel. The input color will be included in the middle of the list.
 • If color is a shade of gray, then the empty list is returned.

Examples

 > $\mathrm{with}\left(\mathrm{ColorTools}\right):$
 > $\mathrm{HueSpread}\left(\mathrm{Color}\left("HSV","Red"\right)\right)$
 $\left[{⟨}\colorbox[rgb]{0,0,1}{{HSV : 0.667 1 1}}{⟩}{,}{⟨}\colorbox[rgb]{1,0,1}{HSV : 0.833 1 1}{⟩}{,}{⟨}\colorbox[rgb]{1,0,0}{{HSV : 0 1 1}}{⟩}{,}{⟨}\colorbox[rgb]{1,1,0}{HSV : 0.167 1 1}{⟩}{,}{⟨}\colorbox[rgb]{0,1,0}{HSV : 0.333 1 1}{⟩}\right]$ (1)
 > $\mathrm{greenspread}≔\mathrm{HueSpread}\left("Green",11,\frac{1}{12}\right)$
 ${\mathrm{greenspread}}{:=}\left[{⟨}\colorbox[rgb]{0.501960784313725,0,0.250980392156863}{{RGB : 0.502 0 0.251}}{⟩}{,}{⟨}\colorbox[rgb]{0.501960784313725,0,0}{{RGB : 0.502 0 0}}{⟩}{,}{⟨}\colorbox[rgb]{0.501960784313725,0.250980392156863,0}{{RGB : 0.502 0.251 0}}{⟩}{,}{⟨}\colorbox[rgb]{0.501960784313725,0.501960784313725,0}{RGB : 0.502 0.502 0}{⟩}{,}{⟨}\colorbox[rgb]{0.250980392156863,0.501960784313725,0}{{RGB : 0.251 0.502 0}}{⟩}{,}{⟨}\colorbox[rgb]{0,0.501960784313725,0}{{RGB : 0 0.502 0}}{⟩}{,}{⟨}\colorbox[rgb]{0,0.501960784313725,0.250980392156863}{{RGB : 0 0.502 0.251}}{⟩}{,}{⟨}\colorbox[rgb]{0,0.501960784313725,0.501960784313725}{{RGB : 0 0.502 0.502}}{⟩}{,}{⟨}\colorbox[rgb]{0,0.250980392156863,0.501960784313725}{{RGB : 0 0.251 0.502}}{⟩}{,}{⟨}\colorbox[rgb]{0,0,0.501960784313725}{{RGB : 0 0 0.502}}{⟩}{,}{⟨}\colorbox[rgb]{0.250980392156863,0,0.501960784313725}{{RGB : 0.251 0 0.502}}{⟩}\right]$ (2)
 > $\mathrm{HSVColorWheel}\left(\mathrm{greenspread}\right)$
 > $\mathrm{HueSpread}\left("Black"\right)$
 $\left[{}\right]$ (3)

Compatibility

 • The ColorTools[HueSpread] command was introduced in Maple 16.