haroldo-ok / RgbQuant-SMS.js

RgbQuant.js adapted for quantizing images for the Sega Master System hardware

Home Page:https://haroldo-ok.github.io/RgbQuant-SMS.js/RgbQuant-SMS.js/demo/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

  • Adapt RgbQuant's quantization to work adequately with SMS's pallete: Done;
  • Implement routine for dividing the quantized image into tiles: Done;
  • Implement removal of duplicate tiles, including those that are flipped: Done;
  • Implement removal of similar, but not necessarily identical, tiles, in order to reduce the amount of tiles to a limit specified by the user: Done;
  • Allow the user to upload his/her own image for conversion: Done;
  • Allow image resizing: Not started yet;
  • Implement command line support: Done.

About

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


Languages

Language:JavaScript 100.0%