I got really bored so I wrote a simple dithering tool in Kotlin. It is surprising how little loss you get when reducing an image to 8 colors. Source code: gist.github.com/Frederikam/115

@fred
BTW, the best way to get a good color reduction is to use some clustering algorithm to get the best color combination. There's plenty of relevant literature in the academia (key word: color quantization).

web.cs.wpi.edu/~matt/courses/c

Self organizing networks like Kohonen's
( en.m.wikipedia.org/wiki/Self-o ) give out the best results.

@rick_777 looks interesting. Perhaps I'll try it out some day.

Sign in to participate in the conversation
niu.moe

Welcome to your niu world ! We are a cute and loving international community O(≧▽≦)O !