BlendColor
function · ui · primitive
- Address
0x4ef7d0· 132 bytes, up to0x4ef853- Signature
void __thiscall (void *this, const uint32_t *source, uint32_t arg3)- Meaning
- Moves each colour channel toward a source colour by t over 256 and keeps the alpha
- Confidence
- verified, proof one
- Finding
- minimap/draw#draw-tint
Finding: Draw tint in minimap: draw
The outdoor tiles are drawn in a tint taken from the light state. The second light colour c2 is pushed toward white by t = min(L + 0x60, 0xff) over 256, where L = (77 R + 151 G + 28 B) >> 8 is the luminance of c2. The first light colour c1 is then pushed toward that result by 0xc0 over 256. The alpha byte of the result is the frame's alpha. The interior blit is drawn in white with the same alpha.
The derivation is in the doc.
Callers 1
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.