← Back to projects
Personal project

Swapprite

Python tool (CLI and GUI) that replaces the palette of an indexed sprite by picking the perceptually closest color in the CIELAB space.

View repository
Swapprite — screenshot 1
Swapprite — screenshot 2

What it is

A tool for indie developers and pixel artists that swaps the color palette of an indexed sprite. Instead of comparing colors with a simple RGB subtraction, it converts them to the CIELAB space and picks the color the human eye perceives as closest. It runs from the terminal (for batch processing) or through a graphical interface.

What it does

What I learned / solved

Why I include it

It combines something I’m passionate about —retro development— with a nice technical problem to solve. And it connects to my project of porting a game to the Sega Mega Drive: it’s a tool from my own pipeline.