ColorTools - Maple Programming Help

Online Help

All Products    Maple    MapleSim


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

ColorTools

  

Swatches

  

plot squares of color

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

Calling Sequence

Swatches(colors)

Parameters

colors

-

list of colors in formats recognized by ColorTools

Options

• 

rows=posint

• 

The number of rows in which to lay out the colors

• 

gap=constant between 0 and 1

• 

The distance between color squares

• 

borders=list

• 

A list of the two colors to use for the backgrounds of the plot

Description

• 

The Swatches command creates a plot of squares of the input colors.  The colors are laid out into a grid that is as close to square as possible by default. This can be overridden with the rows option.

Examples

withColorTools:

SwatchesRed,Green,Blue,Yellow

SwatchesRed,Green,Blue,Yellow,rows=1,gap=0.,borders=White,White

Compatibility

• 

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

• 

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

See Also

ColorTools

ColorTools/ColorSpaces

ColorTools[Color]