Alchemy
Loading...
Searching...
No Matches

kolima_palette.h File Reference

Go to the source code of this file.

Functions

static u16 SceneEffect_AdjustColorChannels (u16 color, s32 adj)
 One cursed colour: red gains a 4 * adj'th of itself (up to 31), and green and blue lose an adj'th.
static void KolimaPalette_SaveFirst (void)
 Keeps the healthy colours: the colour buffer into gKolimaPalette_First.
static void KolimaPalette_SaveSecond (void)
 Keeps the cursed colours: the colour buffer into gKolimaPalette_Second.
static void KolimaPalette_Capture (void)
 Copies the palettes on the screen, background and sprites, into the colour buffer as the colours to fade from.
void KolimaPalette_Curse (s32 strength)
 Keeps the healthy colours, curses the background palettes 0 to 13 (all but colours 1 to 7 of palette 1 and 1 to 8 of palette 12) by strength, keeps the cursed colours too, and shows them.
void KolimaPalette_Restore (s32 second)
 Makes the healthy colours (second 0) or the cursed ones (second 1) the colours to fade to; the scene then fades with Engine_ColorBufferInterpolate.

Function Documentation

◆ SceneEffect_AdjustColorChannels()

u16 SceneEffect_AdjustColorChannels ( u16 color,
s32 adj )
static

One cursed colour: red gains a 4 * adj'th of itself (up to 31), and green and blue lose an adj'th.

Definition at line 45 of file kolima_palette.h.

Referenced by KolimaPalette_Curse(), and SceneEffect_AdjustColorChannels().

◆ KolimaPalette_SaveFirst()

void KolimaPalette_SaveFirst ( void )
static

Keeps the healthy colours: the colour buffer into gKolimaPalette_First.

Definition at line 64 of file kolima_palette.h.

Referenced by KolimaPalette_Curse(), and KolimaPalette_SaveFirst().

◆ KolimaPalette_SaveSecond()

void KolimaPalette_SaveSecond ( void )
static

Keeps the cursed colours: the colour buffer into gKolimaPalette_Second.

Definition at line 70 of file kolima_palette.h.

Referenced by KolimaPalette_Curse(), and KolimaPalette_SaveSecond().

◆ KolimaPalette_Capture()

void KolimaPalette_Capture ( void )
static

Copies the palettes on the screen, background and sprites, into the colour buffer as the colours to fade from.

Definition at line 77 of file kolima_palette.h.

Referenced by KolimaPalette_Capture(), KolimaPalette_Curse(), and KolimaPalette_Restore().

◆ KolimaPalette_Curse()

void KolimaPalette_Curse ( s32 strength)

Keeps the healthy colours, curses the background palettes 0 to 13 (all but colours 1 to 7 of palette 1 and 1 to 8 of palette 12) by strength, keeps the cursed colours too, and shows them.

Definition at line 28 of file kolima_palette.h.

Referenced by KolimaForestBend_Initialize(), KolimaForestClearing_Initialize(), KolimaForestRiver_Initialize(), KolimaForestTree_Initialize(), and KolimaPalette_Curse().

◆ KolimaPalette_Restore()

void KolimaPalette_Restore ( s32 second)

Makes the healthy colours (second 0) or the cursed ones (second 1) the colours to fade to; the scene then fades with Engine_ColorBufferInterpolate.

Definition at line 89 of file kolima_palette.h.

Referenced by KolimaForestTree_RestoreTret(), KolimaForestTree_UpdateHealingPalette(), and KolimaPalette_Restore().