Skip to Content
The Alchemy Project

struct PALETTE_CYCLE

A palette cycle: a run of up to 16 background palette colours, saved and rotated by one colour every delay + 1 ticks.

Declared in palette_cycles.h.

Fields

NameDescription
Uint16 *srcthe first colour of the run, in BG palette RAM
Uint16poscolours rotated so far, 0 to count - 1
Uint16timerticks until the next rotation
Sint16delayticks; the timer restarts from it
Uint16countcolours in the run
Uint16colors [16]the run's colours as saved when the cycle was added

Description

A palette cycle: a run of up to 16 background palette colours, saved and rotated by one colour every delay + 1 ticks.

struct PALETTE_CYCLE

Referenced by fdPaletteCycleAdd(), fdPaletteCycleInit() and fdPaletteCycleStep().

Definition at line 13 of file palette_cycles.h.

Fields in detail

src

Uint16 *src

the first colour of the run, in BG palette RAM

pos

Uint16 pos

colours rotated so far, 0 to count - 1

timer

Uint16 timer

ticks until the next rotation

delay

Sint16 delay

ticks; the timer restarts from it

count

Uint16 count

colours in the run

colors

Uint16 colors[16]

the run's colours as saved when the cycle was added