Skip to Content
The Alchemy Project

include/scene/palette_cycle_places.h

The palette cycle fdPaletteCycleStep runs: BG palette CYCLE_PALETTE's colours from CYCLE_FIRST_COLOR take their places among CYCLE_PLACES one further every CYCLE_STEP_TICKS ticks. More…

Included by jupiter_lighthouse_load_palettes.c and palette_cycle_step.c.

Macros

NameDescription
#defineCYCLE_PALETTE 12
#defineCYCLE_FIRST_COLOR 2
#defineCYCLE_PLACES 5
#defineCYCLE_STEP_TICKS 4

Description

The palette cycle fdPaletteCycleStep runs: BG palette CYCLE_PALETTE's colours from CYCLE_FIRST_COLOR take their places among CYCLE_PLACES one further every CYCLE_STEP_TICKS ticks. Each step writes all but the last place, so one of the five colours is never shown.

Macros in detail

CYCLE_PALETTE

#define CYCLE_PALETTE 12

Referenced by fdPaletteCycleStep() and scJupiterLighthouseLoadPalettes().

Definition at line 9 of file palette_cycle_places.h.

CYCLE_FIRST_COLOR

#define CYCLE_FIRST_COLOR 2

Referenced by fdPaletteCycleStep(), scApojiiIslandsCycleFallsColors(), scApojiiIslandsCycleSeaColors() and scJupiterLighthouseLoadPalettes().

Definition at line 10 of file palette_cycle_places.h.

CYCLE_PLACES

#define CYCLE_PLACES 5

Referenced by fdPaletteCycleStep() and scJupiterLighthouseLoadPalettes().

Definition at line 11 of file palette_cycle_places.h.

CYCLE_STEP_TICKS

#define CYCLE_STEP_TICKS 4

Referenced by fdPaletteCycleStep(), scApojiiIslandsCycleFallsColors() and scApojiiIslandsCycleSeaColors().

Definition at line 12 of file palette_cycle_places.h.