module

CrImage::Draw::Quantizer

Quantizer prodcues a palette for an Image

Instance methods

quantize(p : Color::Palette, m : CrImage::Image) : Color::Palette

quantize appends colors to p and returns the updated palette suitable for converting m to a paletted image.

Source