register a color palette - Maple Help

Online Help

All Products    Maple    MapleSim


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

ColorTools[AddPalette] - register a color palette

Calling Sequence

AddPalette(N, P)

Parameters

N

-

string to be used to identify the palette

P

-

Palette object created with ColorTools[Palette]

Description

• 

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.

Examples

withColorTools:

P:=PaletteRed=Color#f00,Blue=Color#00f,Green=Color#0f0

P:=Palette:RedBlueGreen

(1)

AddPalettePrimary,P

niagara,nautical,spring,oldplots,mono,dalton,executive,bright,css,html,maplev,x11,resene,generic,primary

(2)

NameToRGB24Primary Green

0,255,0

(3)

NearestNamedColor0,255,0,palette=Primary

Primary Green,0.

(4)

RemovePalettePrimary

niagara,nautical,spring,oldplots,mono,dalton,executive,bright,css,html,maplev,x11,resene,generic

(5)

See Also

ColorTools[NameToRGB24], ColorTools[NearestNamedColor], ColorTools[Palette], ColorTools[RemovePalette]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam