← All built-ins / ui_bg()

ui_bg()

ui_bg(...$args): int

Parameters

NameTypeDescription
$handleintcontrol handle
$colorintRGB 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.

See also

ui_fg()ui_font()