benilla-re systems structs docs

s_colourByteScale

global · unassigned

Address
0x81c6b4 · 4 bytes, up to 0x81c6b7
Type
const float
Meaning
Holds 0.00392156 as a float, the byte to unit scale of the Lua colour getters
Confidence
verified, proof one
Finding
ui/fontmethods#reading-colours

Finding: Reading colours in ui: font accessors from Lua

The getters unpack the bytes of the stored colour and multiply each by the float 1/255, returning red, green, blue and alpha as doubles. FontString:GetTextColor returns red as the unrounded product and rounds green, blue and alpha to a float before widening them; the shared getter, the shadow getters and the Button getters return all four unrounded.

The derivation is in the doc.