numcolors - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

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

numcolors

numelems

Examples

Compatibility

Calling Sequence

numcolors(P)

numelems(P)

Parameters

P

-

Palette object created with ColorTools:-Palette

numcolors

• 

The numcolors command returns the number of indexable colors in a Palette object when it was created before any automatic palette expansion.

numelems

• 

The numelems command returns the number of colors in a Palette object including any colors added during automatic palette expansion.

Examples

(1)

(2)

(3)

(4)

(5)

(6)

Compatibility

• 

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

ColorTools[Palette]

numelems

 


Download Help Document