ColorTools
DisplayPalette
insert a worksheet table of all the colors in a given palette
Calling Sequence
Parameters
Options
Description
Examples
Compatibility
DisplayPalette(P)
DisplayPalette(P, opts)
P
-
string used to identify the palette or a Palette object
opts
(optional) ; one or more keyword options as described below
aliases = truefalse
display the aliases for each color
columns = posint
number of columns of colors. The default is usually 6, but may vary between 5 and 7 in order to make the table a square or make it fit on a single row.
noextend
display only the named colors included in the table -- do not display algorithmically generated colors.
width = posint
display the width of table as a percent of the worksheet width. The default is 100.
cellheight = postint
the height in lines of each cell of the table. The default is 3.
The DisplayPalette command displays a table with the names and colors associated with the palette P. The if given as a string, P is not case sensitive.
Unless the option noextend is specified, the table will include at least a full row of colors produced by the automatic extension feature of palettes that are not dictionary palettes.
with⁡ColorTools:
DisplayPalette⁡Niagara
1. Burgundy
2. Navy
3. LeafGreen
4. Azure
5. Purple
6. BlueGreen
7. Violet
8. DeepBlue
9. Cinnamon
10. PaleRed
11. GreenishBlue
12. DarkRose
13. BluishGreen
14. DarkOrchid
15. BluishPurple
16. Olive
17. <generated>
18. <generated>
19. <generated>
20. <generated>
DisplayPalette⁡Niagara,noextend
DisplayPalette⁡Dalton,noextend,columns=3,width=75,cellheight=2
1. SkyBlue
2. Vermillion
3. Yellow
4. Blue
5. Orange
6. ReddishPurple
7. BluishGreen
8. PaleOrange
9. Purple
10. Black
The ColorTools[DisplayPalette] command was introduced in Maple 2017.
For more information on Maple 2017 changes, see Updates in Maple 2017.
See Also
ColorTools[Palette]
Download Help Document