ColorTools[Palette]
numcolors
retrieve the number of defining colors in a Palette object
numelems
retrieve the current total number of colors in a Palette object
Calling Sequence
Parameters
Examples
Compatibility
numcolors(P)
numelems(P)
P
-
Palette object created with ColorTools:-Palette
The numcolors command returns the number of indexable colors in a Palette object when it was created before any automatic palette expansion.
The numelems command returns the number of colors in a Palette object including any colors added during automatic palette expansion.
P≔ColorTools:-GetPalette⁡spring
P≔Palette Spring:⁢Blue⁢Rose⁢YellowGreen⁢BlueGreen⁢Violet⁢Cobalt⁢Yellow⁢PurpleRed⁢GreenBlue⁢PaleGreen⁢Orange⁢Purple⁢Green⁢SeaBlue⁢PaleYellow⁢PaleBlueGreen
numcolors⁡P
16
numelems⁡P
Pnumcolors⁡P+10
〈RGB : 0.417 0.453 0.12〉
27
The ColorTools[Palette][numcolors] and ColorTools[Palette][numelems] commands were introduced in Maple 16.
For more information on Maple 16 changes, see Updates in Maple 16.
See Also
Download Help Document