ColorTools
AddPalette
register a color palette
Calling Sequence
Parameters
Description
Examples
Compatibility
AddPalette(N, P)
N
-
string to be used to identify the palette
P
Palette object created with ColorTools:-Palette
The AddPalette command registers the palette P with the name N so that it will be usable by all ColorTools commands. The string N must contain only alphanumeric characters. It will be stored in lowercase but the capitalization will be preserved.
It returns a list of the normalized names of all the known palettes after the addition.
with⁡ColorTools:
P≔Palette⁡Red=Color⁡#f00,Blue=Color⁡#00f,Green=Color⁡#0f0
P≔Palette:⁢Red⁢Blue⁢Green
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
NameToRGB24⁡Primary Green
0,255,0
NearestNamedColor⁡0,255,0,palette=Primary
Primary Green,0.
RemovePalette⁡Primary
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
The ColorTools[AddPalette] command was introduced in Maple 16.
For more information on Maple 16 changes, see Updates in Maple 16.
See Also
ColorTools[NameToRGB24]
ColorTools[NearestNamedColor]
ColorTools[Palette]
ColorTools[RemovePalette]
Download Help Document