GraySpread - Maple Help

ColorTools

 create a number of evenly spaced shades of gray

 Calling Sequence GraySpread(color, number, step)

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 shades of adjacent colors should differ (the default is 1/(number+1))

Description

 • The command GraySpread generates a list of evenly spaced gray. The input color will be included in the middle of the list.
 • If the input color is not a shade of gray, it will be converted to gray using its luma value.

Examples

 > $\mathrm{with}\left(\mathrm{ColorTools}\right):$
 > $\mathrm{GraySpread}\left(\mathrm{Color}\left("Gray"\right)\right)$
 $\left[{⟨}\colorbox[rgb]{0.168627450980392,0.168627450980392,0.168627450980392}{{RGB : 0.169 0.169 0.169}}{⟩}{,}{⟨}\colorbox[rgb]{0.333333333333333,0.333333333333333,0.333333333333333}{{RGB : 0.335 0.335 0.335}}{⟩}{,}{⟨}\colorbox[rgb]{0.501960784313725,0.501960784313725,0.501960784313725}{RGB : 0.502 0.502 0.502}{⟩}{,}{⟨}\colorbox[rgb]{0.666666666666667,0.666666666666667,0.666666666666667}{RGB : 0.669 0.669 0.669}{⟩}{,}{⟨}\colorbox[rgb]{0.835294117647059,0.835294117647059,0.835294117647059}{RGB : 0.835 0.835 0.835}{⟩}\right]$ (1)
 > $\mathrm{spread}≔\mathrm{GraySpread}\left("Black",11,\frac{1}{12}\right)$
 ${\mathrm{spread}}{≔}\left[{⟨}\colorbox[rgb]{0.749019607843137,0.749019607843137,0.749019607843137}{RGB : 0.75 0.75 0.75}{⟩}{,}{⟨}\colorbox[rgb]{0.584313725490196,0.584313725490196,0.584313725490196}{RGB : 0.583 0.583 0.583}{⟩}{,}{⟨}\colorbox[rgb]{0.415686274509804,0.415686274509804,0.415686274509804}{RGB : 0.417 0.417 0.417}{⟩}{,}{⟨}\colorbox[rgb]{0.250980392156863,0.250980392156863,0.250980392156863}{{RGB : 0.25 0.25 0.25}}{⟩}{,}{⟨}\colorbox[rgb]{0.0823529411764706,0.0823529411764706,0.0823529411764706}{{RGB : 0.0833 0.0833 0.0833}}{⟩}{,}{⟨}\colorbox[rgb]{0,0,0}{{RGB : 0 0 0}}{⟩}{,}{⟨}\colorbox[rgb]{0.168627450980392,0.168627450980392,0.168627450980392}{{RGB : 0.167 0.167 0.167}}{⟩}{,}{⟨}\colorbox[rgb]{0.333333333333333,0.333333333333333,0.333333333333333}{{RGB : 0.333 0.333 0.333}}{⟩}{,}{⟨}\colorbox[rgb]{0.501960784313725,0.501960784313725,0.501960784313725}{RGB : 0.5 0.5 0.5}{⟩}{,}{⟨}\colorbox[rgb]{0.666666666666667,0.666666666666667,0.666666666666667}{RGB : 0.667 0.667 0.667}{⟩}{,}{⟨}\colorbox[rgb]{0.831372549019608,0.831372549019608,0.831372549019608}{RGB : 0.833 0.833 0.833}{⟩}\right]$ (2)

Compatibility

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