Skip to content
/ nesify Public

Squishes an image to NES palette limitations

Notifications You must be signed in to change notification settings

kmck/nesify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nesify

Squishes an image to NES palette limitations.

This library makes a reasonable effort to come up with a decent NES palette for an image and apply it. The palette sliced up into 4-color subpalettes, each of which shares a common "background" color. THe image is divided into 8x8 tiles, each of which can be assigned a different subpalette.

Usage

nesify --srcUrl="http://whatever"
nesify --srcFile="~/Downloads/cool.jpg" --customPalette="0f0116360f0f1a30"

This tool is useful for creating and previewing palettes.

@TODO

  • More complete
  • Add pre-dither level filtering
  • A real demo page? Heh.
  • Impose a limit to the number of distinct tiles that the image can have, and do some clever "best fit" logic to share tiles and do palette swapping.

About

Squishes an image to NES palette limitations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published