GetColorNames - Maple Help

ColorTools

 GetColorNames
 list built-in color names

 Calling Sequence GetColorNames() GetColorNames(P)

Parameters

 P - a palette object or the string with the name of a known palette

Options

 • new : boolean; indicates whether to restrict to new color names (true), old color names (false), or no restriction (the default)
 • all     : if not specified, only displayable colors will be returned (this is only really useful for palettes specified in non-RGB color spaces).
 • aliases : if specified, aliases will be returned as well.  This option only applies when a palette is specified.

Description

 • The GetColorNames procedure produces a list of the (translated) color strings recognized by ColorTools without specifying a palette. When new=true, only new color names are returned, while for new=false only old color names are returned. If unset, both sets of color names are returned.
 • If a palette is specified all the displayable colors in that palette will be returned as a list.

Examples

 > $\mathrm{with}\left(\mathrm{ColorTools}\right):$
 > $\mathrm{GetColorNames}\left('\mathrm{new}'=\mathrm{false}\right)$
 $\left[{"aquamarine"}{,}{"black"}{,}{"blue"}{,}{"brown"}{,}{"coral"}{,}{"cyan"}{,}{"gold"}{,}{"gray"}{,}{"green"}{,}{"khaki"}{,}{"magenta"}{,}{"maroon"}{,}{"navy"}{,}{"orange"}{,}{"pink"}{,}{"plum"}{,}{"red"}{,}{"sienna"}{,}{"tan"}{,}{"turquoise"}{,}{"violet"}{,}{"wheat"}{,}{"white"}{,}{"yellow"}{,}{"grey"}\right]$ (1)
 > $\mathrm{GetColorNames}\left("Niagara"\right)$
 $\left[{"Burgundy"}{,}{"Navy"}{,}{"LeafGreen"}{,}{"Azure"}{,}{"Purple"}{,}{"BlueGreen"}{,}{"Violet"}{,}{"DeepBlue"}{,}{"Cinnamon"}{,}{"PaleRed"}{,}{"GreenishBlue"}{,}{"DarkRose"}{,}{"BluishGreen"}{,}{"DarkOrchid"}{,}{"BluishPurple"}{,}{"Olive"}\right]$ (2)

Compatibility

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