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

Online Help

All Products    Maple    MapleSim


ColorTools[Palette]

  

GetColors

  

retrieve colors from a Palette object

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

GetColors(P)

GetColors(P,all)

Parameters

P

-

Palette object created with ColorTools:-Palette

all

-

(optional) keyword option

Description

• 

The GetColors command returns all displayable colors in the Palette P as a list of Color objects.

• 

By specifying all, the command returns all colors including the ones that are not displayable.

Examples

> 

P≔ColorTools:-GetPalette⁡Niagara

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

(1)
> 

GetColors⁡P

⟨RGB : Burgundy⟩,⟨RGB : Navy⟩,⟨RGB : Leaf Green⟩,⟨RGB : Azure⟩,⟨RGB : Purple⟩,⟨RGB : Blue Green⟩,⟨RGB : Violet⟩,⟨RGB : Deep Blue⟩,⟨RGB : Cinnamon⟩,⟨RGB : Pale Red⟩,⟨RGB : Greenish Blue⟩,⟨RGB : Dark Rose⟩,⟨RGB : Bluish Green⟩,⟨RGB : Dark Orchid⟩,⟨RGB : Bluish Purple⟩,⟨RGB : Olive⟩

(2)
> 

P2≔ColorTools:-Palette⁡Red,Green,Blue,ColorTools:-Color⁡0.293,−0.128,0.132

P2≔Palette:⁢Red⁢Green⁢Blue⁢Dark Red Purple

(3)
> 

GetColors⁡P2

⟨RGB : Red⟩,⟨RGB : Green⟩,⟨RGB : Blue⟩

(4)
> 

GetColors⁡P2,all

⟨RGB : Red⟩,⟨RGB : Green⟩,⟨RGB : Blue⟩,⟨*RGB* : Dark Red Purple⟩

(5)

Compatibility

• 

The ColorTools[Palette][GetColors] command was introduced in Maple 16.

• 

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

See Also

ColorTools[Palette]