Nintendo pixelation
Convert image to a somewhat NES-style image:
- Get the colors of each square of n pixels.
- Convert those colors from RGB to LAB and average them.
- Round that color to the closest color in the NES palette.
- Convert back to RGB and set all n pixels to that color.
forked from veltman's block: Nintendo pixelation