Skip to main content

Module palette

Module palette 

Source
Expand description

The indexed palette of one rendering (at most 255 colours).

Layout (by construction, so every pixel lands on an entry):

IndicesEntries
0-7background bands (vignette 0-3, warm glow 4-7)
8-55ink: band x 6 levels (ink in glow bands is tinted toward the accent)
56-103ember particles: band x 6 levels
104..sprite colours
255reserved (GIF transparency)

Structs§

IndexedPalette

Constants§

EMBER_BASE
INK_BASE
LEVELS
Ink levels per band (glyph alpha x shade, quantised).
SPRITE_BASE
TRANSPARENT_INDEX
Reserved for GIF transparency; never used by a rendered pixel.

Functions§

ink_level
Ink level 0..=LEVELS from glyph alpha and cell shade (both 0-255).