IanFinlayson / png2gba

A utility to convert PNG images into C arrays as required fro GBA programming
MIT License
18 stars 6 forks source link

Added the option to output png files into a 2D matrix #6

Closed Treagle350 closed 1 year ago

Treagle350 commented 1 year ago

When batch processing multiple files at once using the -o flag, the program will output the images into a single 2D matrix which allows the images to be used to create animations or video on the GBA. E.g. './png2gba -p -o out.h test{1..2}.png' will allow the main.c file to loop through all entries in the 2D matrix creating an animation in the process.

Example of new code being used to produce video can be found here : https://github.com/Treagle350/GBA_video_example

Changed default behaviour slightly, palette flag now produces output of the palette in seperate file and prints includes in the file to link them together.