Skip to Content
The Alchemy Project

src/field/sprite_color_tables.c

The colour tables of the sprite colour modes (SPR_COL_MODE) that remap a pixel's colour, 256 bytes each: five that swap a sprite's colour channels, SPRITE_COLOR_GRB to SPRITE_COLOR_BRG (also used by fdSpritePictureCacheLoad for variants 1 to 5), then the grey one and the blue, red and green tints.

Variables

NameDescription
const Uint8SpriteColorTables [][256]The first five 256-byte colour tables of SPR_COL_MODE, indexed by pixel.
const Uint8SpriteColorGreyTable []Four 256-byte colour tables (remap0 to remap3), indexed by pixel: the SPR_COL_MODE tables after SpriteColorTables' five, the first also remapping the command icons (fdSpriteColorRemapPixels).

Description

The colour tables of the sprite colour modes (SPR_COL_MODE) that remap a pixel's colour, 256 bytes each: five that swap a sprite's colour channels, SPRITE_COLOR_GRB to SPRITE_COLOR_BRG (also used by fdSpritePictureCacheLoad for variants 1 to 5), then the grey one and the blue, red and green tints.

Variables in detail

SpriteColorTables

const Uint8 SpriteColorTables[][256]

The first five 256-byte colour tables of SPR_COL_MODE, indexed by pixel.

Referenced by fdSpritePictureCacheLoad().

Definition at line 9 of file sprite_color_tables.c.

SpriteColorGreyTable

const Uint8 SpriteColorGreyTable[]

Four 256-byte colour tables (remap0 to remap3), indexed by pixel: the SPR_COL_MODE tables after SpriteColorTables' five, the first also remapping the command icons (fdSpriteColorRemapPixels).

Referenced by fdSpriteColorRemapPixels().

Definition at line 112 of file sprite_color_tables.c.