#178366 - punchki - Tue Apr 07, 2015 8:12 pm
I've been following tonc tutorials for quite a bit now, and I've gotten to the point where I want to make some of my own programs.
I made a circuit that uses a sensor to get the heart rate of a person, and outputs either a high or low signal. I want to use the GBA to display information on the heartrate and have a little heart flickering at the beat of the heart. Once I get my program working, I will put the two together.
But first...
The issue that I'm getting to is when using gfx2gba I want to take an image and turn it into a mode 4 .c However, using this:
gfx2gba -fsrc -c256 heart.bmp
I end up getting an output of a .raw.c and a master pallete, but the pallete doesn't seem to be in the format I want it.
How can I use gfx2gba to output me a pallete in the format:
Sorry if I'm not very clear... please let me know if it is unclear!
I made a circuit that uses a sensor to get the heart rate of a person, and outputs either a high or low signal. I want to use the GBA to display information on the heartrate and have a little heart flickering at the beat of the heart. Once I get my program working, I will put the two together.
But first...
The issue that I'm getting to is when using gfx2gba I want to take an image and turn it into a mode 4 .c However, using this:
gfx2gba -fsrc -c256 heart.bmp
I end up getting an output of a .raw.c and a master pallete, but the pallete doesn't seem to be in the format I want it.
How can I use gfx2gba to output me a pallete in the format:
Code: |
// THIS IS NOT THE ACTUAL PAL const unsigned int heartPal[8]= { 0x00100000,0x7FE00300,0x00007C18,0xFFFF1111,0x00000000,0x00000000,0x00000000,0x00000000, }; |
Sorry if I'm not very clear... please let me know if it is unclear!