GetPalette - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


ColorTools

  

GetPalette

  

return a color palette

 

Calling Sequence

Parameters

Description

Examples

Compatibility

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

> 

with⁡ColorTools:

> 

GetPalette⁡spring

Palette Spring:⁢Blue⁢Rose⁢YellowGreen⁢BlueGreen⁢Violet⁢Cobalt⁢Yellow⁢PurpleRed⁢GreenBlue⁢PaleGreen⁢Orange⁢Purple⁢Green⁢SeaBlue⁢PaleYellow⁢PaleBlueGreen

(1)
> 

GetPalette⁡niagara

Palette Niagara:⁢Burgundy⁢Navy⁢LeafGreen⁢Azure⁢Purple⁢BlueGreen⁢Violet⁢DeepBlue⁢Cinnamon⁢PaleRed⁢GreenishBlue⁢DarkRose⁢BluishGreen⁢DarkOrchid⁢BluishPurple⁢Olive

(2)
> 

GetPalette⁡dalton

Palette Dalton:⁢SkyBlue⁢Vermillion⁢Yellow⁢Blue⁢Orange⁢ReddishPurple⁢BluishGreen⁢PaleOrange⁢Purple⁢Black

(3)
> 

P≔Palette⁡Red=Color⁡#f00,Blue=Color⁡#00f,Green=Color⁡#0f0

P≔Palette:⁢Red⁢Blue⁢Green

(4)
> 

AddPalette⁡Primary,P

bright,dalton,executive,mono,nautical,niagara,oldplots,patchwork,spring,css,cvd,cvd2,cvd3,html,maplev,x11,resene,generic,xterm,solarized,xkcd,beersrm,inferno,magma,plasma,viridis,cividis,turbo,twilight,colorwheel,coolwarm,divergebjy,divergebkr,divergebky,divergebwy,divergegwv,divergerainbow,isocircle,isoluminant,labwheel,rainbow,hue,rgbwheel,primary

(5)
> 

GetPalette⁡primary

Palette Primary:⁢Red⁢Blue⁢Green

(6)

Compatibility

• 

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

• 

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

See Also

ColorTools[PaletteNames]