I would like to fade in two palettes at once.
If I try to call PAL_fadeInPalette twice in a row, the last one to be called wins.
I see there is a PAL_fadeInAll function, but it requires a 64 color pallet (make sense). However, I'm not sure of a way to trigger ResComp to do this, so what is the best way to create the needed palette? I don't mind assembling it through code, but I'm unsure of what format the PAL data is actually in.
What is the best way to fade in multiple palettes at once?
Moderator: Stef
-
- Interested
- Posts: 24
- Joined: Sun Feb 27, 2022 3:27 am
-
- Interested
- Posts: 24
- Joined: Sun Feb 27, 2022 3:27 am
Re: What is the best way to fade in multiple palettes at once?
Ah, I figured it out. I took at look at pal.c and found examples via the default palettes, they are just simple arrays:
Code: Select all
const u16 palette_red[16] =
{
0x0000,
0x0002,
0x0004,
0x0006,
0x0008,
0x000A,
0x000C,
0x000E,
0x000E,
0x000E,
0x000E,
0x000E,
0x000E,
0x000E,
0x000E,
0x000E
};