CScriptRegion::SetGradient
function · ui · primitive
- Address
0x77f910· 387 bytes, up to0x77fa92- 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
- CSimpleTexture::LoadXML ui
- CSimpleColorSelect::SetValueTexture ui
- Texture::SetGradient ui
- Texture::SetGradientAlpha ui
Callees 3
- GrowArrayBy526930 ui
- 0x5ce1c0 font
- 0x667300 storm
Calls and jumps by a bare address, from tables/calls.tsv.