color_picker
This type represents a color picker control.
__call
Constructs the color picker.
Arguments
Name
Type
Description
allow_alpha
bool
Whether to enable alpha channel. Defaults to true
.
Returns
Type
Description
color_picker
Color picker object.
Example
local picker = gui.color_picker(id);
get_value
Returns color picker' value.
Arguments
None.
Returns
Type
Description
Value data.
Example
local val = picker:get_value():get();
Last updated