NeuQuant Neural-Net Quantization Algorithm

NeuQuant is a neural-net quantization algorithm by Anthony Dekker that I adapted for use in Processing. It tries to find the optimum palette of n colors for any image.

In this demo, the x-position of the mouse controls the amount of colors in the palette. To see the biggest impact, keep you mouse to the left.

The painting shown is "A Dog named Jesus" by Mark Ryden.