ColorTools[Palette] - Maple Programming Help

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

ColorTools[Palette]

 GetAliases
 retrieve color alias mappings from a Palette object

 Calling Sequence GetAliases(P)

Parameters

 P - Palette object created with ColorTools:-Palette

Description

 • The GetAliases command returns all the aliases stored for the colors in P. For the included color collection these are normally alternate spellings.

Examples

 > $P≔\mathrm{ColorTools}:-\mathrm{GetPalette}\left("HTML"\right):$
 > $\mathrm{GetAliases}\left(P\right)$
 $\left[{"SlateGrey"}{=}{"SlateGray"}{,}{"DarkSlateGrey"}{=}{"DarkSlateGray"}{,}{"Grey"}{=}{"Gray"}{,}{"LightGrey"}{=}{"LightGray"}{,}{"Magenta"}{=}{"Fuchsia"}{,}{"DarkMagenta"}{=}{"DarkFuchsia"}{,}{"Aqua"}{=}{"Cyan"}{,}{"LightSlateGrey"}{=}{"LightSlateGray"}{,}{"NavyBlue"}{=}{"Navy"}{,}{"DarkGrey"}{=}{"DarkGray"}{,}{"DimGrey"}{=}{"DimGray"}\right]$ (1)

Compatibility

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