Description

Quantize appends up to cap(p) - len(p) colors to p and returns the updated palette suitable for converting m to a paletted image.