← All built-ins / ui_bg()
ui_bg()
ui_bg(...$args): int
Parameters
| Name | Type | Description |
|---|---|---|
| $handle | int | control handle |
| $color | int | RGB value, e.g. 0xFF0000 for red |
Return value
Sets the background color.
Example
echo "ui_bg($panel, 0x1b1c23);";
ui_bg($panel, 0x1b1c23);
This call needs a real environment (window, server, database or stdin) — the snippet above shows the typical usage shape.