ColorTools - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Graphics : Packages : ColorTools : Palette Object Commands : ColorTools/DisplayPalette

ColorTools

  

DisplayPalette

  

Insert a worksheet table of all the colors in a given palette

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

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

withColorTools:

DisplayPaletteNiagara

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>









 

DisplayPaletteNiagara&comma;noextend

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









 

DisplayPaletteDalton&comma;noextend&comma;columns&equals;3&comma;width&equals;75&comma;cellheight&equals;2

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.

See Also

ColorTools[Palette]