ColorTools
KnownPalette
check whether a string is the name of a known palette
Calling Sequence
Parameters
Description
Examples
Compatibility
KnownPalette(N)
N
-
string used to identify the palette
The KnownPalette command returns true if and only if N is the name of a known palette. The string is not case-sensitive.
with⁡ColorTools:
P≔Palette⁡Red=Color⁡#f00,Blue=Color⁡#00f,Green=Color⁡#0f0
P≔Palette:⁢Red⁢Blue⁢Green
AddPalette⁡Primary,P
niagara,nautical,spring,oldplots,mono,dalton,executive,bright,patchwork,css,cvd,cvd2,cvd3,html,maplev,x11,resene,generic,xterm,solarized,xkcd,primary
KnownPalette⁡primary
true
KnownPalette⁡Primary
KnownPalette⁡Prim ary
false
The ColorTools[KnownPalette] command was introduced in Maple 16.
For more information on Maple 16 changes, see Updates in Maple 16.
See Also
ColorTools[Palette]
Download Help Document
What kind of issue would you like to report? (Optional)