ColorTools - Maple Programming Help

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

ColorTools

 Swatches
 plot squares of color

 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

 > $\mathrm{with}\left(\mathrm{ColorTools}\right):$
 > $\mathrm{Swatches}\left(\left["Red","Green","Blue","Yellow"\right]\right)$
 > $\mathrm{Swatches}\left(\left["Red","Green","Blue","Yellow"\right],\mathrm{rows}=1,\mathrm{gap}=0.,\mathrm{borders}=\left["White","White"\right]\right)$

Compatibility

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