← All built-ins / ui_pick_color()

ui_pick_color()

ui_pick_color(...$args): mixed

Parameters

Takes no arguments.

Return value

Chosen color as RGB int, or false when cancelled.

Example

echo "$c = ui_pick_color(); // false = cancelled";
$c = ui_pick_color(); // false = cancelled

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

See also

ui_bg()ui_fg()