Skip to content
pixi-silk
GitHub repository
Interface

EyedropperOptions

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

Options of Eyedropper.

Properties#

PropertyTypeDescriptionDefined in
modelColorModelReceives the picked colour (alpha unchanged) and a commit().ui/color/Eyedropper.ts:19
onDone?(color: number | null) => voidFinished: the picked colour, or null when cancelled or when the sampler returned null.ui/color/Eyedropper.ts:25
sampleColorSamplerReads the scene colour as 0xRRGGBB under a canvas point.ui/color/Eyedropper.ts:21
ticker?Ticker | nullTicker that runs the loupe animation. Default Ticker.shared. With null, call Eyedropper.tick yourself.ui/color/Eyedropper.ts:23