GetColors - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

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

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]