add matching colors to a palette - Maple Help

Online Help

All Products    Maple    MapleSim


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

ColorTools[ExpandPalette] - add matching colors to a palette

Calling Sequence

ExpandPalette(P)

Parameters

P

-

list of colors in formats recognized by ColorTools, or a Palette created with ColorTools[Palette]

Description

• 

The ExpandPalette command computes additional colors that can be added to a palette. Colors are selected to match well with at least one input color but not be too close to any of the input colors.  The ColorTools commands Lighten, Saturate, Darken, Desaturate, NeutralSpread, and HueSplit are used to generate candidate colors.  The colors are then filtered based on the options to remove undesirable colors.  Then a greedy method is used to select the desired number of candidates that are perceptually far away from the input colors.

Examples

withColorTools:

ExpandPaletteGetPaletteMapleV,number=2

RGB : 0.137 0.488 0.557,RGB : 0 0.625 1

(1)

P:=ExpandPaletteDarkRed,Green,Navy,number=3

P:=RGB : 0 0.502 0.502,RGB : 0.545 0 0.545,RGB : 0.545 0.545 0

(2)

SwatchesDarkRed,Green,Navy,P[],rows=2

See Also

ColorTools, ColorTools/ColorSpaces, ColorTools[Color], ColorTools[Palette]


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