ColorTools[Palette]
GetColors
retrieve colors from a Palette object
Calling Sequence
Parameters
Description
Examples
Compatibility
GetColors(P)
GetColors(P,all)
P
-
Palette object created with ColorTools:-Palette
all
(optional) keyword option
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.
P≔ColorTools:-GetPaletteNiagara
P≔Palette Niagara:BurgundyNavyLeafGreenAzurePurpleBlueGreenVioletDeepBlueCinnamonPaleRedGreenishBlueDarkRoseBluishGreenDarkOrchidBluishPurpleOlive
GetColorsP
⟨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⟩
P2≔ColorTools:-PaletteRed,Green,Blue,ColorTools:-Color0.293,−0.128,0.132
P2≔Palette:RedGreenBlueDark Red Purple
GetColorsP2
⟨RGB : Red⟩,⟨RGB : Green⟩,⟨RGB : Blue⟩
GetColorsP2,all
⟨RGB : Red⟩,⟨RGB : Green⟩,⟨RGB : Blue⟩,⟨*RGB* : Dark Red Purple⟩
The ColorTools[Palette][GetColors] command was introduced in Maple 16.
For more information on Maple 16 changes, see Updates in Maple 16.
See Also
Download Help Document