benilla-re systems structs docs

Texture::SetGradientAlpha

function · ui · primitive

Address
0x79b180 · 1019 bytes, up to 0x79b57a
Signature
int __fastcall (lua_State *L)
Meaning
Gives the four corners two colours with alphas by orientation
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/texture#gradients
Test
ui::luabind_79a_pack_color_pair

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 0

None by a direct call or jump.

Callees 12

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