GraySpread - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


ColorTools

  

GraySpread

  

create a number of evenly spaced shades of gray

 

Calling Sequence

Parameters

Description

Examples

Compatibility

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

withColorTools:

GraySpreadColorGray

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

(1)

spreadGraySpreadBlack,11,112

spreadRGB : 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

(2)

Compatibility

• 

The ColorTools[GraySpread] command was introduced in Maple 16.

• 

For more information on Maple 16 changes, see Updates in Maple 16.

See Also

ColorTools

ColorTools/ColorSpaces

ColorTools[Color]

ColorTools[Gradient]

ColorTools[HueSpread]