ColorTools - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

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

ColorTools

 NeutralSpread
 create a number of nearby colors with hues spaced across 90 degrees

 Calling Sequence NeutralSpread(color, number)

Parameters

 color - color format recognized by ColorTools number - positive integer; number of colors to return

Description

 • The command NeutralSpread generates a list of evenly spaced colors across one quarter of 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{NeutralSpread}\left(\mathrm{Color}\left("HSV","Red"\right),3\right)$
 $\left[{⟨}\colorbox[rgb]{1,0,0.376470588235294}{{HSV : 0.938 1 1}}{⟩}{,}{⟨}\colorbox[rgb]{1,0,0}{{HSV : 0 1 1}}{⟩}{,}{⟨}\colorbox[rgb]{1,0.376470588235294,0}{HSV : 0.0625 1 1}{⟩}\right]$ (1)
 > $\mathrm{greenspread}≔\mathrm{NeutralSpread}\left("Green",11\right)$
 ${\mathrm{greenspread}}{≔}\left[{⟨}\colorbox[rgb]{0.313725490196078,0.501960784313725,0}{{RGB : 0.314 0.502 0}}{⟩}{,}{⟨}\colorbox[rgb]{0.250980392156863,0.501960784313725,0}{{RGB : 0.251 0.502 0}}{⟩}{,}{⟨}\colorbox[rgb]{0.188235294117647,0.501960784313725,0}{{RGB : 0.188 0.502 0}}{⟩}{,}{⟨}\colorbox[rgb]{0.125490196078431,0.501960784313725,0}{{RGB : 0.125 0.502 0}}{⟩}{,}{⟨}\colorbox[rgb]{0.0627450980392157,0.501960784313725,0}{{RGB : 0.0627 0.502 0}}{⟩}{,}{⟨}\colorbox[rgb]{0,0.501960784313725,0}{{RGB : 0 0.502 0}}{⟩}{,}{⟨}\colorbox[rgb]{0,0.501960784313725,0.0627450980392157}{{RGB : 0 0.502 0.0627}}{⟩}{,}{⟨}\colorbox[rgb]{0,0.501960784313725,0.125490196078431}{{RGB : 0 0.502 0.125}}{⟩}{,}{⟨}\colorbox[rgb]{0,0.501960784313725,0.188235294117647}{{RGB : 0 0.502 0.188}}{⟩}{,}{⟨}\colorbox[rgb]{0,0.501960784313725,0.250980392156863}{{RGB : 0 0.502 0.251}}{⟩}{,}{⟨}\colorbox[rgb]{0,0.501960784313725,0.313725490196078}{{RGB : 0 0.502 0.314}}{⟩}\right]$ (2)
 > $\mathrm{HSVColorWheel}\left(\mathrm{greenspread}\right)$

Compatibility

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

 See Also