Get the latest tech news

Mapping to the PICO-8 palette, perceptually


September 7th, 2025 Given a palette and an image, how would you map each pixel to a color in the palette? In this article we’ll investigate how an advanced perceptual color space (CAM16-UCS) compares to simpler alternatives. For this experiment I chose a somewhat strange cropped still from the Big Buck Bunny short and the PICO-8 fantasy console’s 16-color palette: A simple way to map pixels to palette colors is to compute the Euclidean distance between each pixel and palette color, and choose the one with the shortest distance.

For this experiment I chose a somewhat strange cropped still from the Big Buck Bunny short and the PICO-8 fantasy console’s 16-color palette: Note that this method completely discards any structure in the image, which puts a limit on how good the results can look. Just for fun, I tried pumping the luminance weight so high that we’ll be effectively reproducing a greyscale image with the PICO-8 palette:

Get the Android app

Or read this on Hacker News

Read more on:

Photo of mapping

mapping

Photo of PICO-8 palette

PICO-8 palette

Related news:

News photo

Internet mapping and research outfit Censys reveals state-based abuse, harassment

News photo

Games Look Bad: HDR and Tone Mapping (2017)

News photo

Bike-mounted sensor could boost the mapping of safe cycling routes