Texture::SetGradient
function · ui · primitive
- Address
0x79ae30· 806 bytes, up to0x79b155- Signature
int __fastcall (lua_State *L)- Meaning
- Gives the four corners two colours by orientation, with alpha 1
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/texture#gradients
- Test
ui::luabind_79a_set_gradient
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 11
- __ftol crt
- ParseOrientation ui
- lua_settop lua
- lua_type lua
- lua_isstring lua
- lua_tonumber lua
- lua_tostring lua
- lua_touserdata lua
- lua_rawgeti lua
- luaL_error lua
- CScriptRegion::SetGradient ui
Calls and jumps by a bare address, from tables/calls.tsv.