Image quantizer for Uzebox (and other retro stuff)
Posted: Fri Mar 31, 2017 6:32 pm
I have an image quantizer which is suitable for use with Uzebox here:
https://github.com/Jubatian/InsaniQuant
Why? I updated this while working on my SPI RAM graphics modes where it may be more useful to have larger images (however it might find some use with non-SPI RAM stuff, tiny images too). If you wanted to specifically quantize an image for use with Uzebox or some other retro stuff, you would find there isn't any real solution due to the low bpp palette (you could quantize to an Uzebox palette of course, but you wouldn't be able to quantize a 16 color image with such a palette constraint).
You can target the Uzebox by requesting a color depth of "332" (3 bit Red, 3 bit Green, 2 bit Blue) with this, and it tends to work well especially with low color counts (such as even 2bpp).
https://github.com/Jubatian/InsaniQuant
Why? I updated this while working on my SPI RAM graphics modes where it may be more useful to have larger images (however it might find some use with non-SPI RAM stuff, tiny images too). If you wanted to specifically quantize an image for use with Uzebox or some other retro stuff, you would find there isn't any real solution due to the low bpp palette (you could quantize to an Uzebox palette of course, but you wouldn't be able to quantize a 16 color image with such a palette constraint).
You can target the Uzebox by requesting a color depth of "332" (3 bit Red, 3 bit Green, 2 bit Blue) with this, and it tends to work well especially with low color counts (such as even 2bpp).