PaletteNames - Maple Help

# Online Help

###### All Products    Maple    MapleSim

ColorTools

 PaletteNames
 get list of known color palettes

 Calling Sequence PaletteNames() PaletteNames(normalized)

Description

 • The PaletteNames command returns a list of the names of all the known palettes.
 • If the option normalized is given, then the all lowercase version of the names will be returned.

List of Color Collections

 • The following is a list of palettes intially known by Maple:

Examples

 > $\mathrm{with}\left(\mathrm{ColorTools}\right):$
 > $\mathrm{PaletteNames}\left(\right)$
 $\left[{"Niagara"}{,}{"Nautical"}{,}{"Spring"}{,}{"OldPlots"}{,}{"Mono"}{,}{"Dalton"}{,}{"Executive"}{,}{"Bright"}{,}{"Patchwork"}{,}{"CSS"}{,}{"CVD"}{,}{"CVD2"}{,}{"CVD3"}{,}{"HTML"}{,}{"MapleV"}{,}{"X11"}{,}{"Resene"}{,}{"Generic"}{,}{"xterm"}{,}{"Solarized"}{,}{"xkcd"}\right]$ (1)
 > $P≔\mathrm{Palette}\left(\left["Red"=\mathrm{Color}\left("#f00"\right),"Blue"=\mathrm{Color}\left("#00f"\right),"Green"=\mathrm{Color}\left("#0f0"\right)\right]\right)$
 ${P}{≔}⟨{Palette:}{}\colorbox[rgb]{1,0,0}{{Red}}{}\colorbox[rgb]{0,0,1}{{Blue}}{}\colorbox[rgb]{0,1,0}{Green}⟩$ (2)
 > $\mathrm{AddPalette}\left("Primary",P\right)$
 $\left[{"niagara"}{,}{"nautical"}{,}{"spring"}{,}{"oldplots"}{,}{"mono"}{,}{"dalton"}{,}{"executive"}{,}{"bright"}{,}{"patchwork"}{,}{"css"}{,}{"cvd"}{,}{"cvd2"}{,}{"cvd3"}{,}{"html"}{,}{"maplev"}{,}{"x11"}{,}{"resene"}{,}{"generic"}{,}{"xterm"}{,}{"solarized"}{,}{"xkcd"}{,}{"primary"}\right]$ (3)
 > $\mathrm{PaletteNames}\left(\right)\left[-1\right]$
 ${"Primary"}$ (4)
 > $\mathrm{PaletteNames}\left('\mathrm{normalized}'\right)\left[-1\right]$
 ${"primary"}$ (5)

Compatibility

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

 See Also