EyedropperOptions
import type { EyedropperOptions } from 'pixi-silk/ui/color';
Options of Eyedropper.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
model | ColorModel | Receives the picked colour (alpha unchanged) and a commit(). | ui/color/Eyedropper.ts:19 |
onDone? | (color: number | null) => void | Finished: the picked colour, or null when cancelled or when the sampler returned null. | ui/color/Eyedropper.ts:25 |
sample | ColorSampler | Reads the scene colour as 0xRRGGBB under a canvas point. | ui/color/Eyedropper.ts:21 |
ticker? | Ticker | null | Ticker that runs the loupe animation. Default Ticker.shared. With null, call Eyedropper.tick yourself. | ui/color/Eyedropper.ts:23 |