ColorSelect::SetColorRGB
function · ui · primitive
- Address
0x78eae0· 559 bytes, up to0x78ed0e- Signature
int __fastcall (lua_State *L)- Meaning
- Implements the ColorSelect method SetColorRGB, its pair in the table 0x87abb0
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/colorselect#setting-the-colour
- Test
ui::luabind_78eae0_setcolor_78fc20_setstatus_quantize
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 11
- __ftol crt
- lua_settop lua
- lua_type lua
- lua_isnumber lua
- lua_tonumber lua
- lua_touserdata lua
- lua_rawgeti lua
- luaL_error lua
- CSimpleColorSelect::Redraw ui
- RgbToHsv unassigned
- UnpackColorBytes unassigned
Calls and jumps by a bare address, from tables/calls.tsv.