ColorSelect::SetColorHSV
function · ui · primitive
- Address
0x78e920· 223 bytes, up to0x78e9fe- Signature
int __fastcall (lua_State *L)- Meaning
- Implements the ColorSelect method SetColorHSV, its pair in the table 0x87abb0
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/colorselect#setting-the-colour
Finding: Setting the colour in ui: ColorSelect
SetColorRGB(r, g, b) clamps each channel to 0 to 1, turns it into a byte by
trunc(v·255 + 0.5), divides the bytes by 255 and converts them to hue, saturation and value. A
fifth argument is read and discarded. SetColorHSV(h, s, v) stores its three numbers as given,
unclamped. Both then redraw and run OnColorSelect, on every call, changed or not.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 7
- lua_settop lua
- lua_type lua
- lua_tonumber lua
- lua_touserdata lua
- lua_rawgeti lua
- luaL_error lua
- CSimpleColorSelect::Redraw ui
Calls and jumps by a bare address, from tables/calls.tsv.