Create a new NeuQuant instance.
Returns the RGB color map calculated from the sample.
Returns the RGBA color map calculated from the sample.
Finds the best-matching index in the color map.
pixel
is assumed to be in RGBA format.
Lookup pixel values for color at idx
in the colormap.
Maps the rgba-pixel in-place to the best-matching color in the color map.
A NeuQuant instance.