Skip to Content
The Alchemy Project

src/field/palette_scale.c

The fade of the Lucky Dice and Lucky Wheels screens, which darken and brighten by scaling their palettes; each game's object includes it.

Included by lucky_dice.c and lucky_wheels.c.

Functions

NameDescription
static Sint32fdPaletteScaleRGB555 (Uint16 *src, Uint16 *dest, FIXED scale, Sint32 count)Copies count RGB555 colours from source to destination with each channel multiplied by scale (16.16: 0 is black, toFIXED(1) unchanged), for fades.

Description

The fade of the Lucky Dice and Lucky Wheels screens, which darken and brighten by scaling their palettes; each game's object includes it.

Functions in detail

fdPaletteScaleRGB555

static Sint32 fdPaletteScaleRGB555(Uint16 *src, Uint16 *dest, FIXED scale, Sint32 count)

Copies count RGB555 colours from source to destination with each channel multiplied by scale (16.16: 0 is black, toFIXED(1) unchanged), for fades.

References Sint32.

Referenced by fdLuckyDiceRun() and fdLuckyWheelsRun().

Definition at line 6 of file palette_scale.c.