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:-GetPalette⁡Niagara
P≔Palette Niagara:⁢Burgundy⁢Navy⁢LeafGreen⁢Azure⁢Purple⁢BlueGreen⁢Violet⁢DeepBlue⁢Cinnamon⁢PaleRed⁢GreenishBlue⁢DarkRose⁢BluishGreen⁢DarkOrchid⁢BluishPurple⁢Olive
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〉
P2 ≔ ColorTools:-Palette⁡Red,Green,Blue,ColorTools:-Color⁡0.293,−0.128,0.132
P2≔Palette:⁢Red⁢Green⁢Blue⁢Dark Red Purple
GetColors⁡P2
〈RGB : Red〉,〈RGB : Green〉,〈RGB : Blue〉
GetColors⁡P2,'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
What kind of issue would you like to report? (Optional)