Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 811 Bytes

README.md

File metadata and controls

15 lines (9 loc) · 811 Bytes

bmp2coe

Used to convert bitmap image files to coe files for use with an FPGA. This script can convert individual images or spritesheets, and currently only supports palletised images (both 16 and 256 colour). 2 files will be outputted, one for the palette and one for the image data.

For spritesheets, the sprites will be stored sequentially in memory, from left to right and top to bottom in the spritesheet. Pixels in the sprites are stored left to right, top to bottom.

Usage

Run python bmp2coe.py --help for info on how to run the script.

Resources