OklchPickerOptions
import type { OklchPickerOptions } from 'pixi-silk/ui/color';
Options of OklchPicker.
Extends#
Properties#
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
gap? | number | Space between plane and strip, local units. Default 12. | - | ui/color/OklchPicker.ts:17 |
height? | number | Height of the plane, local units. Default 160. | - | ui/color/OklchPicker.ts:11 |
maxChroma? | number | Highest chroma shown. Default 0.37 (the most saturated sRGB colours). | - | ui/color/OklchPicker.ts:13 |
model? | ColorModel | The colour to edit. Pickers sharing a model stay in sync. Default: a new model. | ColorPickerOptions.model | ui/color/ColorPicker.ts:13 |
profiles? | Partial<Record<InputKind, Partial<InputProfile>>> | Per pointer kind overrides. Touch gets bigger handles through the profile’s scale. | ColorPickerOptions.profiles | ui/color/ColorPicker.ts:17 |
rows? | number | Rows the plane is drawn with, at least 8. More is smoother, each costs one gradient. Default 48. | - | ui/color/OklchPicker.ts:19 |
stripHeight? | number | Height of the hue strip under the plane, local units. 0 hides it. Default 16. | - | ui/color/OklchPicker.ts:15 |
ticker? | Ticker | null | Ticker driving the handle motion. Default Ticker.shared, null for manual ColorPicker.tick. | ColorPickerOptions.ticker | ui/color/ColorPicker.ts:15 |
width? | number | Width of the lightness / chroma plane, local units. Default 240. | - | ui/color/OklchPicker.ts:9 |