## DuColorSelector()

For use with `DuScriptUI`.
A color selector, with an edittext and a random button.
This is not a real class, and cannot be instanciated.
Use `DuScriptUI.colorSelector` to create a Selector.
The Selector inherits the Group object from ScriptUI and has all of its properties and methods.
Constructor

#### # new DuColorSelector()

View Source DuAEF_Duik_api.jsxinc, line 12801

# Members

Type: `DuColor`

#### # static color

The current color

View Source DuAEF_Duik_api.jsxinc, line 12812

Type: `DuColorSelector~onChange`

#### # static onChange

Method called when the has been changed

View Source DuAEF_Duik_api.jsxinc, line 12827

# Methods

#### # static setColor(color)

Sets the current color

##### Parameters:

Name | Type | Description
--- | --- | ---
`color` | `DuColor` | The new color

View Source DuAEF_Duik_api.jsxinc, line 12819

# Type Definitions

#### # onChange()

The function to execute when the color is changed.

View Source DuAEF_Duik_api.jsxinc, line 12834