ColorTools - Maple Programming Help

Home : Support : Online Help : Graphics : Packages : ColorTools : ColorTools/PaletteNames

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.

Examples

 > $\mathrm{with}\left(\mathrm{ColorTools}\right):$
 > $\mathrm{PaletteNames}\left(\right)$
 $\left[{"Niagara"}{,}{"Nautical"}{,}{"Spring"}{,}{"OldPlots"}{,}{"Mono"}{,}{"Dalton"}{,}{"Executive"}{,}{"Bright"}{,}{"CSS"}{,}{"HTML"}{,}{"MapleV"}{,}{"X11"}{,}{"Resene"}{,}{"Generic"}\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"}{,}{"css"}{,}{"html"}{,}{"maplev"}{,}{"x11"}{,}{"resene"}{,}{"generic"}{,}{"primary"}\right]$ (3)
 > ${\mathrm{PaletteNames}\left(\right)}_{-1}$
 ${"Primary"}$ (4)
 > ${\mathrm{PaletteNames}\left('\mathrm{normalized}'\right)}_{-1}$
 ${"primary"}$ (5)

Compatibility

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