haroldo-ok / RgbQuant-SMS.js

RgbQuant.js adapted for quantizing images for the Sega Master System hardware
https://haroldo-ok.github.io/RgbQuant-SMS.js/RgbQuant-SMS.js/demo/index.html
15 stars 1 forks source link
8-bit color-quantization image-processing javascript retro-games sega-master-system

RgbQuant-SMS.js

This is a tool for converting an image to a palette+tileset+map compatible with the Sega Master System while keeping the number of tiles down to a predefined limit; it uses RgbQuant.js to reduce the number of colors, then it does the usual steps of dividing the image into tiles and removing the duplicates; finally, it uses clusterfck's k-means implementation to group tiles by similarity, and uses that information for merging together tiles that are similar enough.

This is a work in progress

TODO: