HueTrianglePicker
import { HueTrianglePicker } from 'pixi-silk/ui/color';
Hue ring with a saturation / value triangle inside (Blender, Krita, GIMP). The triangle turns so its pure-hue corner points at the hue on the ring. Corners: pure hue, white, black.
Extends#
HueRingPicker
Constructors#
Constructor#
new HueTrianglePicker(options?: HueRingOptions): HueTrianglePicker;
Parameters#
| Parameter | Type |
|---|---|
options | HueRingOptions |
Returns#
HueTrianglePicker
Overrides#
HueRingPicker.constructor
Properties#
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
model | readonly | ColorModel | The colour this picker edits. Share it to link pickers. | HueRingPicker.model | ui/color/ColorPicker.ts:36 |
state | readonly | ColorPickerState | Signals to read. See ColorPickerState. | HueRingPicker.state | ui/color/ColorPicker.ts:38 |
Accessors#
size#
Get Signature#
get size(): number;
Outer diameter in local units.
Returns
number
Inherited from#
HueRingPicker.size
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#
HueRingPicker.destroy
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
Inherited from#
HueRingPicker.tick