Apply a palette finding the closest color.
Choose the image you want to process. You can save the resulting image by pressing 's'.
The palette is defined as a float type vector. The current one is the Sega Master System palette.
Based on NES Filter from: https://happycoding.io/examples/processing/images/nes-filter