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

Online Help

ColorTools

  

Gradient

  

generate a selection of intermediate colors

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

Calling Sequence

Gradient(color1..color2)

Parameters

color1,color2

-

colors in formats recognized by ColorTools

Options

• 

number=nonnegint

  

the number of intermediate colors to compute (default is 10)

• 

space=string

  

the color space in which to compute the intermediate colors. By default this is inferred from the colors spaces of the input.

• 

best

  

if this keyword is given, a heuristic is used to get a well-spaced set of colors using the Jab perceptual color space.

• 

displayable

  

if this keyword is given, then each output color will be displayable

Description

• 

The Gradient command computes a number of intermediate colors that transition between the two colors in the input range.

Examples

with(ColorTools):

G := Gradient("Red".."Blue");

(1)

H := Gradient("Red".."Blue", best);

(2)

Swatches([G[], H[]], rows=2);

Compatibility

• 

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

• 

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

• 

The ColorTools[Gradient] command was updated in Maple 2023.

• 

The best option was updated in Maple 2023.

See Also

ColorTools

ColorTools/ColorSpaces

ColorTools[AnalogousSpread]

ColorTools[Color]

ColorTools[EvenSpread]

ColorTools[GraySpread]

ColorTools[HueSpread]

ColorTools[NeutralSpread]

 


Download Help Document