create a number of evenly spaced shades of gray - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Graphics : Packages : ColorTools : ColorTools/GraySpread

ColorTools[GraySpread] - 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

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)

spread:=GraySpreadBlack,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

(2)

See Also

ColorTools, ColorTools/ColorSpaces, ColorTools[Color], ColorTools[HueSpread]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam