ColorTools
Gradient
generate a selection of intermediate colors
Calling Sequence
Parameters
Options
Description
Examples
Compatibility
Gradient(color1..color2)
color1,color2
-
colors in formats recognized by ColorTools
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
The Gradient command computes a number of intermediate colors that transition between the two colors in the input range.
with(ColorTools):
G := Gradient("Red".."Blue");
H := Gradient("Red".."Blue", best);
Swatches([G[], H[]], rows=2);
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/ColorSpaces
ColorTools[AnalogousSpread]
ColorTools[Color]
ColorTools[EvenSpread]
ColorTools[GraySpread]
ColorTools[HueSpread]
ColorTools[NeutralSpread]
Download Help Document