ColorTools
Swatches
plot squares of color
Calling Sequence
Parameters
Options
Description
Examples
Compatibility
Swatches(colors, opts)
colors
-
a list of colors in formats recognized by ColorTools or a Palette object
rows= positive integer
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
bottomup=true or false
If true, the first color in the palette will appear in the bottom left corner instead of the top left.
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.
with⁡ColorTools:
Swatches⁡Red,Green,Blue,Yellow
Swatches⁡Red,Green,Blue,Yellow,rows=1,gap=0.,borders=White,White
Swatches⁡GetPalette⁡Executive
The ColorTools[Swatches] command was introduced in Maple 16.
For more information on Maple 16 changes, see Updates in Maple 16.
The bottomup option was introduced in Maple 2017.
For more information on Maple 2017 changes, see Updates in Maple 2017.
See Also
ColorTools/ColorSpaces
ColorTools[Color]
Download Help Document
What kind of issue would you like to report? (Optional)