← All built-ins / ui_fg()

ui_fg()

ui_fg(...$args): int

Parameters

NameTypeDescription
$handleintcontrol handle
$colorintRGB value

Return value

Sets the text color.

Example

echo "ui_fg($lbl, 0xFF7B3D);";
ui_fg($lbl, 0xFF7B3D);

This call needs a real environment (window, server, database or stdin) — the snippet above shows the typical usage shape.

See also

ui_bg()ui_font()