ColorTools[Palette] - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Graphics : Packages : ColorTools : Palette Object Commands : ColorTools/Palette/GetColors

ColorTools[Palette]

  

GetColors

  

retrieve colors from a Palette object

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

GetColors(P)

GetColors(P,all=bool)

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

PColorTools:-GetPaletteNiagara

PPalette Niagara:BurgundyNavyLeafGreenAzurePurpleBlueGreenVioletDeepBlueCinnamonPaleRedGreenishBlueDarkRoseBluishGreenDarkOrchidBluishPurpleOlive

(1)

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

(2)

P2ColorTools:-PaletteRed,Green,Blue,ColorTools:-Color0.293,0.128,0.132

P2Palette:RedGreenBlueDark Red Purple

(3)

GetColorsP2

RGB : Red,RGB : Green,RGB : Blue

(4)

GetColorsP2,'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]