color_picker

This type represents a color picker control.

This type inherits control type. All of its base methods and fields are also available in this type.

__call

Constructs the color picker.

Arguments

Name

Type

Description

id

Control ID.

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

Example

local val = picker:get_value():get();

Last updated