Skip to content
pixi-silk
GitHub repository
Class

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#

ParameterType
optionsHueRingOptions

Returns#

HueTrianglePicker

Overrides#

HueRingPicker.constructor

Properties#

PropertyModifierTypeDescriptionInherited fromDefined in
modelreadonlyColorModelThe colour this picker edits. Share it to link pickers.HueRingPicker.modelui/color/ColorPicker.ts:36
statereadonlyColorPickerStateSignals to read. See ColorPickerState.HueRingPicker.stateui/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#

ParameterType
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#

ParameterType
dtnumber

Returns#

boolean

Inherited from#

HueRingPicker.tick