ColorTools - Maple Programming Help

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

ColorTools

 GetPalette
 return a color palette

 Calling Sequence GetPalette(N)

Parameters

 N - string used to identify the palette

Description

 • The GetPalette command returns the Palette object associated with the name N. The string is not case-sensitive.

Examples

 > $\mathrm{with}\left(\mathrm{ColorTools}\right):$
 > $\mathrm{GetPalette}\left("spring"\right)$
 $⟨{Palette Spring:}{}\colorbox[rgb]{0,0.454901960784314,0.8}{{Blue}}{}\colorbox[rgb]{0.8,0,0.454901960784314}{{Rose}}{}\colorbox[rgb]{0.454901960784314,0.8,0}{YellowGreen}{}\colorbox[rgb]{0,0.8,0.745098039215686}{BlueGreen}{}\colorbox[rgb]{0.345098039215686,0,0.8}{{Violet}}{}\colorbox[rgb]{0.294117647058824,0.494117647058824,0.650980392156863}{Cobalt}⟩$ (1)
 > $\mathrm{GetPalette}\left("niagara"\right)$
 $⟨{Palette Niagara:}{}\colorbox[rgb]{0.470588235294118,0,0.0549019607843137}{{Burgundy}}{}\colorbox[rgb]{0,0.0549019607843137,0.470588235294118}{{Navy}}{}\colorbox[rgb]{0.290196078431373,0.470588235294118,0}{{LeafGreen}}{}\colorbox[rgb]{0.243137254901961,0.341176470588235,0.541176470588235}{{Azure}}{}\colorbox[rgb]{0.470588235294118,0,0.447058823529412}{{Purple}}{}\colorbox[rgb]{0,0.470588235294118,0.415686274509804}{{BlueGreen}}{}\colorbox[rgb]{0.376470588235294,0.254901960784314,0.568627450980392}{{Violet}}{}\colorbox[rgb]{0,0.290196078431373,0.470588235294118}{{DeepBlue}}{}\colorbox[rgb]{0.470588235294118,0.298039215686275,0}{{Cinnamon}}{}\colorbox[rgb]{0.568627450980392,0.254901960784314,0.290196078431373}{{PaleRed}}{}\colorbox[rgb]{0.243137254901961,0.450980392156863,0.541176470588235}{{GreenishBlue}}{}\colorbox[rgb]{0.470588235294118,0,0.231372549019608}{{DarkRose}}{}\colorbox[rgb]{0,0.470588235294118,0.247058823529412}{{BluishGreen}}{}\colorbox[rgb]{0.568627450980392,0.254901960784314,0.525490196078431}{{DarkOrchid}}{}\colorbox[rgb]{0.317647058823529,0,0.470588235294118}{{BluishPurple}}{}\colorbox[rgb]{0.466666666666667,0.470588235294118,0}{Olive}⟩$ (2)
 > $\mathrm{GetPalette}\left("dalton"\right)$
 $⟨{Palette Dalton:}{}\colorbox[rgb]{0.337254901960784,0.705882352941177,0.913725490196078}{SkyBlue}{}\colorbox[rgb]{0.835294117647059,0.368627450980392,0}{Vermillion}{}\colorbox[rgb]{0.941176470588235,0.894117647058824,0.258823529411765}{Yellow}{}\colorbox[rgb]{0,0.447058823529412,0.698039215686274}{{Blue}}{}\colorbox[rgb]{0.901960784313726,0.623529411764706,0}{Orange}{}\colorbox[rgb]{0.8,0.474509803921569,0.654901960784314}{ReddishPurple}{}\colorbox[rgb]{0,0.619607843137255,0.450980392156863}{BluishGreen}⟩$ (3)
 > $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}⟩$ (4)
 > $\mathrm{AddPalette}\left("Primary",P\right)$
 $\left[{"niagara"}{,}{"nautical"}{,}{"spring"}{,}{"oldplots"}{,}{"mono"}{,}{"dalton"}{,}{"executive"}{,}{"bright"}{,}{"css"}{,}{"html"}{,}{"maplev"}{,}{"x11"}{,}{"resene"}{,}{"generic"}{,}{"primary"}\right]$ (5)
 > $\mathrm{GetPalette}\left("primary"\right)$
 $⟨{Palette Primary:}{}\colorbox[rgb]{1,0,0}{{Red}}{}\colorbox[rgb]{0,0,1}{{Blue}}{}\colorbox[rgb]{0,1,0}{Green}⟩$ (6)

Compatibility

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