Skip to Content
The Alchemy Project

src/field/palette_cycle_add.c

Adding a palette cycle. More…

Included by field_tile_animation.c and islets.c.

Functions

NameDescription
Sint32fdPaletteCycleAdd (Sint16 paletteNumber, Sint16 firstColor, Sint16 delay, Sint16 colorCount)Unused: starts rotating colorCount colours of background palette paletteNumber, from colour firstColor, by one place every delay + 1 ticks (fdPaletteCycleStep).

Description

Adding a palette cycle. field_tile_animation.c and the islets' scene (scene/islets.c) each include a copy.

Functions in detail

fdPaletteCycleAdd

Sint32 fdPaletteCycleAdd(Sint16 paletteNumber, Sint16 firstColor, Sint16 delay, Sint16 colorCount)

Unused: starts rotating colorCount colours of background palette paletteNumber, from colour firstColor, by one place every delay + 1 ticks (fdPaletteCycleStep). Returns 0, or -1 when all four cycles are taken.

References Sint32 and syDMAXCopy().

Referenced by scIsletsInitSeaOfTime().

Definition at line 7 of file palette_cycle_add.c.