ColorWheel
import { ColorWheel } from 'pixi-silk/ui/color';
Colour wheel: hue around the disc, saturation from the centre out, and a value strip beside it. Origin at the top-left corner, the disc first, then the strip.
Extends#
Constructors#
Constructor#
new ColorWheel(options?: ColorWheelOptions): ColorWheel;
Parameters#
| Parameter | Type |
|---|---|
options | ColorWheelOptions |
Returns#
ColorWheel
Overrides#
Properties#
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
model | readonly | ColorModel | The colour this picker edits. Share it to link pickers. | ColorPicker.model | ui/color/ColorPicker.ts:36 |
state | readonly | ColorPickerState | Signals to read. See ColorPickerState. | ColorPicker.state | ui/color/ColorPicker.ts:38 |
Accessors#
pickerWidth#
Get Signature#
get pickerWidth(): number;
Total width in local units: disc, gap and strip.
Returns
number
Methods#
destroy()#
destroy(options?: DestroyOptions): void;
Stops the animation and unsubscribes from the model. The model stays usable. Destroys children by default.
Parameters#
| Parameter | Type |
|---|---|
options? | DestroyOptions |
Returns#
void
Inherited from#
tick()#
tick(dt: number): boolean;
Advances the animation by dt seconds (only needed with ticker: null). Returns true while moving.
Parameters#
| Parameter | Type |
|---|---|
dt | number |
Returns#
boolean