benilla-re systems structs docs

XmlReadColor

function · ui · primitive

Address
0x6f23d0 · 601 bytes, up to 0x6f2628
Meaning
Reads a colour element's four channels, clamping and quantising them
Confidence
verified, proof one
Finding
ui/backdrop#the-xml-element
Test
ui::glue_6f1_clamp_quantize_boundaries, ui::glue_6f1_color_pack

Finding: The XML element in ui: the frame backdrop

A <Backdrop> reads bgFile, edgeFile and tile as attributes and then its children TileSize, EdgeSize, BackgroundInsets, Color and BorderColor. Any other child logs Unknown child node in %s element: %s and loading goes on. A length is the val of the element or of an AbsValue child, converted from interface units, or the val of a RelValue child, stored as it is; with none the loader logs No "val" attribute in element: %s. The insets read left, right, top and bottom the same way, with AbsInset and RelInset children. A colour reads r, g, b and a clamped to 0 to 1; a missing r, g or b is 0 and a missing a is 1.

The derivation is in the doc.

Callers 9

Callees 3

Calls and jumps by a bare address, from tables/calls.tsv.