Sets value of a specific variable as color.
Syntax |
void set_color(const string &in name, uint32 value) |
---|---|
name |
Variable name |
value |
Value of the variable |
Result |
(none) |
Notes |
For more information about the variable, see the section on default variables. |
Example of use:
bool execute(pan3d::object @panel) { ... panel.set_color("item1.color", color_from_rgb(255, 0, 0)); ... } |