ColorPicker

This type represents a color picker control.

circle-info

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

__call

Constructor

Constructs the color picker.

Arguments

Name

Type

Description

id

ControlID|string

Control ID.

allow_alpha

bool

Whether to enable alpha channel. Defaults to true.

Returns

Type

Description

ColorPicker

Color picker object.

Example

local picker = gui.ColorPicker(id);

GetValue

Method

Returns color picker' value.

Arguments

None.

Returns

Type

Description

Example


Get

Method

Returns value directly. Alias for GetValue():Get() .

Arguments

None.

Returns

Type

Description

Value.

Example

Last updated