Pekka's Computer Graphics Book Special Interest Group

I'm writing a book on color quantization algorithms. It's a practical guide to generating palettes for retro graphics.

As of October 2025, the planned list of topics is:

  • Median cut and its modifications
  • Optimized variance calculations
  • k-means clustering in theory and practice
  • Perceptual color spaces and color distances
  • Dithering
  • Explanations of some state-of-the-art algorithms
  • A numerical Python primer
 


My plan is to launch the book in 2026 first as a digital download followed by a print edition. It will include code examples in Python.

Sign up if you'd like to hear when it's out. I'll also email you when it gets a name and a website.

My earlier plan for the book on this page included more topics but I've decided to focus it on the palette subject for now.