struct PALETTE_FADE
The palette fade (HEAP_SLOT_PALETTE_FADE) that fades the BG and OBJ palettes: the source palette, the shown and target colour channels, their per-tick steps, and two pages of packed RGB555 colours queued each tick.
Declared in palette_buffers.h.
Fields
| Name | Description | |
|---|---|---|
Uint16 | palette [448] | The source palette, RGB555: 224 BG colours, then 224 OBJ colours; palette[0] is the backdrop. |
Uint16 | current [PALETTE_FADE_CHANNELS] | The shown colours, as B, G and R channels shifted up 10 bits, three a colour. |
Uint16 | target [PALETTE_FADE_CHANNELS] | The colours current moves toward, as current. |
Uint16 | delta [PALETTE_FADE_CHANNELS] | Added to each current channel each tick. |
Uint16 | packed [2][448] | Two pages of RGB555 colours: one is built while the other is queued. |
Uint8 | page | The packed page queued this tick. |
Sint8 | duration | Ticks; 0 when the colours are not moving. |
Sint8 | step | Ticks. |
Uint8 | padding |
Description
The palette fade (HEAP_SLOT_PALETTE_FADE) that fades the BG and OBJ palettes:
the source palette, the shown and target colour channels, their per-tick
steps, and two pages of packed RGB555 colours queued each tick.
struct PALETTE_FADE
Referenced by fdPaletteFadeInit(), fdPaletteFadeLoadPalette(), fdPaletteFadePackTarget(), fdPaletteFadeSetBackdrop(), fdPaletteFadeSetSource(), fdPaletteFadeSetTarget(), fdPaletteFadeStartInterpolation(), fdPaletteFadeUpdate(), fdPsynergyEnd(), fdStartColorTransition(), fdWeatherStartLightning(), fdWeatherStartLightningFlash(), fdWeatherUpdateLightning(), mnShopSaveAndTintFieldPalette(), scAirsRockInsideUpdateVentPuff(), scGarohInitVillage(), scInit(), scIsletCaveDarkenPalette(), scMarsLighthouseStarRoomUseMarsStar(), scPaletteSetColorsFade() and scSeaOfTimeAnimateSea().
Definition at line 62 of file palette_buffers.h.
Fields in detail
palette
Uint16 palette[448]
The source palette, RGB555: 224 BG colours, then 224 OBJ colours; palette[0] is the backdrop.
current
Uint16 current[PALETTE_FADE_CHANNELS]
The shown colours, as B, G and R channels shifted up 10 bits, three a colour.
target
Uint16 target[PALETTE_FADE_CHANNELS]
The colours current moves toward, as current.
delta
Uint16 delta[PALETTE_FADE_CHANNELS]
Added to each current channel each tick.
packed
Uint16 packed[2][448]
Two pages of RGB555 colours: one is built while the other is queued.
page
Uint8 page
The packed page queued this tick.
duration
Sint8 duration
Ticks; 0 when the colours are not moving.
step
Sint8 step
Ticks.
padding
Uint8 padding