DisplayPalette - Maple Help

ColorTools

 DisplayPalette
 insert a worksheet table of all the colors in a given palette

 Calling Sequence DisplayPalette(P) DisplayPalette(P, opts)

Parameters

 P - a string used to identify the palette or a palette object opts - (optional) ; one or more keyword options as described below

Options

 • aliases = truefalse

display the aliases for each color

 • columns = posint

number of column of colors.  The default is usually 6, but may vary between 5 and 7 in order to make the table or square or 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.

Description

 • 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.

Examples

 > $\mathrm{with}\left(\mathrm{ColorTools}\right):$
 > $\mathrm{DisplayPalette}\left("Niagara"\right)$

 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. 18. 19. 20.

 > $\mathrm{DisplayPalette}\left("Niagara",\mathrm{noextend}\right)$

 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

 > $\mathrm{DisplayPalette}\left("Dalton",\mathrm{noextend},\mathrm{columns}=3,\mathrm{width}=75,\mathrm{cellheight}=2\right)$

 1. SkyBlue 2. Vermillion 3. Yellow 4. Blue 5. Orange 6. ReddishPurple 7. BluishGreen

Compatibility

 • The ColorTools[DisplayPalette] command was introduced in Maple 2017.
 • For more information on Maple 2017 changes, see Updates in Maple 2017.