create a number of colors with evenly spaced hues - Maple Help

Online Help

All Products    Maple    MapleSim


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

ColorTools[HueSpread] - create a number of colors with evenly spaced hues

Calling Sequence

HueSpread(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 hues of adjacent colors should differ (the default is 1/6)

Description

• 

The command HueSpread generates a list of evenly spaced colors around 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

withColorTools:

HueSpreadColorHSV,Red

HSV : 0.667 1 1,HSV : 0.833 1 1,HSV : 0 1 1,HSV : 0.167 1 1,HSV : 0.333 1 1

(1)

greenspread:=HueSpreadGreen,11,112

greenspread:=RGB : 0.502 0 0.251,RGB : 0.502 0 0,RGB : 0.502 0.251 0,RGB : 0.502 0.502 0,RGB : 0.251 0.502 0,RGB : 0 0.502 0,RGB : 0 0.502 0.251,RGB : 0 0.502 0.502,RGB : 0 0.251 0.502,RGB : 0 0 0.502,RGB : 0.251 0 0.502

(2)

HSVColorWheelgreenspread

HueSpreadBlack

(3)

See Also

ColorTools, ColorTools/ColorSpaces, ColorTools[Color], ColorTools[GraySpread]


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