OklchPicker
import { OklchPicker } from 'pixi-silk/ui/color';
Perceptual picker: lightness (top to bottom) against chroma (left to right) for one OKLCH hue, with an OKLCH hue strip below. The area outside sRGB is greyed, with its edge drawn, so colours stay picked by how they look, not by how a screen mixes them.
Extends#
Constructors#
Constructor#
new OklchPicker(options?: OklchPickerOptions): OklchPicker;
Parameters#
| Parameter | Type |
|---|---|
options | OklchPickerOptions |
Returns#
OklchPicker
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#
lch#
Get Signature#
get lch(): OKLCH;
Current OKLCH as this picker sees it (chroma may exceed what sRGB shows). A copy.
Returns
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