benilla-re systems structs docs

CScriptRegion::SetGradient

function · ui · primitive

Address
0x77f910 · 387 bytes, up to 0x77fa92
Meaning
Sets the four corner colours of a region from a minimum, a maximum and an orientation
Confidence
verified, proof one
Finding
ui/texture#gradients

Finding: Gradients in ui: texture colour and drawing

SetGradient(orientation, minR, minG, minB, maxR, maxG, maxB) and SetGradientAlpha(orientation, minR, minG, minB, minA, maxR, maxG, maxB, maxA) give the four corners their own vertex colours. The orientation is HORIZONTAL or VERTICAL, ignoring case; any other string raises the usage message. Each channel is clamped to 0 to 1 and the alpha of SetGradient is 1. HORIZONTAL gives the two left corners the minimum colour and the two right corners the maximum; VERTICAL gives the two bottom corners the minimum and the two top corners the maximum. The result is four entries in both colour arrays, so the quad record's stride is 4.

The derivation is in the doc.

Callers 4

Callees 3

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