Idea: option to snap to a fixed retro palette

#2
by pixelartmaker - opened

Thanks for this Space, k-means gives really clean results on photos.

One idea: an option to skip k-means and snap colors to a fixed palette instead (PICO-8, Game Boy, CGA, EGA…). That is what many game devs need when their project is locked to a console palette. Matching in OKLab rather than RGB keeps hues closer, and optional Floyd-Steinberg dithering helps with gradients.

If it is useful, the palettes are available as JSON/CSV under CC BY 4.0 in pixelartmaker/pixel-art-palettes, and this small Space shows the fixed-palette approach in plain JS if you want to compare.

Sign up or log in to comment