ColorTools
GraySpread
create a number of evenly spaced shades of gray
Calling Sequence
Parameters
Description
Examples
Compatibility
GraySpread(color, number, step)
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))
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.
with⁡ColorTools:
GraySpread⁡Color⁡Gray
〈RGB : 0.169 0.169 0.169〉,〈RGB : 0.335 0.335 0.335〉,〈RGB : 0.502 0.502 0.502〉,〈RGB : 0.669 0.669 0.669〉,〈RGB : 0.835 0.835 0.835〉
spread≔GraySpread⁡Black,11,112
spread≔〈RGB : 0.75 0.75 0.75〉,〈RGB : 0.583 0.583 0.583〉,〈RGB : 0.417 0.417 0.417〉,〈RGB : 0.25 0.25 0.25〉,〈RGB : 0.0833 0.0833 0.0833〉,〈RGB : 0 0 0〉,〈RGB : 0.167 0.167 0.167〉,〈RGB : 0.333 0.333 0.333〉,〈RGB : 0.5 0.5 0.5〉,〈RGB : 0.667 0.667 0.667〉,〈RGB : 0.833 0.833 0.833〉
The ColorTools[GraySpread] command was introduced in Maple 16.
For more information on Maple 16 changes, see Updates in Maple 16.
See Also
ColorTools/ColorSpaces
ColorTools[Color]
ColorTools[Gradient]
ColorTools[HueSpread]
Download Help Document