Skip to content

Tool to convert indexed bitmaps into chr data for NES development

Notifications You must be signed in to change notification settings

stephenjjbrown/bmp2chr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bmp2chr

Cross-platform command line tool to convert an indexed-color bitmap (.bmp) into CHR data for use in developing Nintendo Entertainment System (NES) ROMs.



Image Requirements

Bitmaps should use indexed color mode, be 128px wide, height should be a multiple of 8px.

Pixel values are assigned by palette_index % 4, so multiple 4-color palettes can be used in the same bitmap if you so desire, and it will all get "flattened" to 2bpp pixel data.

The palettes themselves are not imported, so it's up to you to use colors that resemble in-game colors.

Usage

On the command line: bmp2chr mybitmap.bmp

Build

Just run cargo build to compile or download binaries from releases.

About

Tool to convert indexed bitmaps into chr data for NES development

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages