GetColorNames - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

ColorTools

  

GetColorNames

  

list built-in color names

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

Calling Sequence

GetColorNames()

GetColorNames(P)

Parameters

P

-

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

withColorTools:

GetColorNamesnew=false

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

(1)

GetColorNamesNiagara

Burgundy,Navy,LeafGreen,Azure,Purple,BlueGreen,Violet,DeepBlue,Cinnamon,PaleRed,GreenishBlue,DarkRose,BluishGreen,DarkOrchid,BluishPurple,Olive

(2)

Compatibility

• 

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

• 

For more information on Maple 16 changes, see Updates in Maple 16.

See Also

ColorTools/Palette

ColorTools:-GetPalette

 


Download Help Document