Skip to content
pixi-silk
GitHub repository
Interface

OklchPickerOptions

import type { OklchPickerOptions } from 'pixi-silk/ui/color';

Options of OklchPicker.

Extends#

Properties#

PropertyTypeDescriptionInherited fromDefined in
gap?numberSpace between plane and strip, local units. Default 12.-ui/color/OklchPicker.ts:17
height?numberHeight of the plane, local units. Default 160.-ui/color/OklchPicker.ts:11
maxChroma?numberHighest chroma shown. Default 0.37 (the most saturated sRGB colours).-ui/color/OklchPicker.ts:13
model?ColorModelThe colour to edit. Pickers sharing a model stay in sync. Default: a new model.ColorPickerOptions.modelui/color/ColorPicker.ts:13
profiles?Partial<Record<InputKind, Partial<InputProfile>>>Per pointer kind overrides. Touch gets bigger handles through the profile’s scale.ColorPickerOptions.profilesui/color/ColorPicker.ts:17
rows?numberRows the plane is drawn with, at least 8. More is smoother, each costs one gradient. Default 48.-ui/color/OklchPicker.ts:19
stripHeight?numberHeight of the hue strip under the plane, local units. 0 hides it. Default 16.-ui/color/OklchPicker.ts:15
ticker?Ticker | nullTicker driving the handle motion. Default Ticker.shared, null for manual ColorPicker.tick.ColorPickerOptions.tickerui/color/ColorPicker.ts:15
width?numberWidth of the lightness / chroma plane, local units. Default 240.-ui/color/OklchPicker.ts:9