ColorTools - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Graphics : Packages : ColorTools : Color and Color Object Manipulation Commands : ColorTools/ReducePalette

ColorTools

  

ReducePalette

  

reduce a large list of colors to a smaller, representative list

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

ReducePalette(colors)

Parameters

colors

-

list of Color objects

Description

• 

This command reduces a large list of colors down to a small representative list of less than 20 colors.

Examples

withColorTools:

fullseqColorRGB,1i,i,1i,i=0..1,0.05

module...end module,module...end module,module...end module,module...end module,module...end module,module...end module,module...end module,module...end module,module...end module,module...end module,module...end module,module...end module,module...end module,module...end module,module...end module,module...end module,module...end module,module...end module,module...end module,module...end module,module...end module

(4.1)

numelemsfull

21

(4.2)

reducedReducePalettefull

module...end module,module...end module,module...end module,module...end module,module...end module

(4.3)

numelemsreduced

5

(4.4)

imgfilecatkerneloptsdatadir,/images/antennas.jpg:

ImageTools:-EmbedImageTools:-Readimgfile

fullColorsFromImageimgfile:

numelemsfull

226

(4.5)

reducedReducePalettefull

module...end module,module...end module

(4.6)

numelemsreduced

2

(4.7)

Compatibility

• 

The ColorTools[ReducePalette] command was introduced in Maple 18.

• 

For more information on Maple 18 changes, see Updates in Maple 18.

See Also

ColorTools

ColorTools/Color

ColorTools/ColorsFromImage

ColorTools/ColorSpaces

ColorTools/Palette

ImageTools