Inpaint Prompt
Image edit by region: brush or lasso a mask on a drawn scene, prompt from a bar attached to the selection, watch the region shimmer while generating, then pick and apply one of three drawn variants.
Preview
Select
Select
3 variants for “a stack of old books”
3 variants ready. Variant 1 selected.
Install
Pro source requires Pebble Pro. Try the full preview above.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| defaultMask | ("vase" | "bowl" | "window")[] | [] | Objects pre-selected as the mask. |
| defaultPrompt | string | "" | Starting text in the prompt bar. |
| defaultStage | "edit" | "variants" | "edit" | Start on the variant picker (needs a default mask). |
| generateMs | number | 1600 | Length of the simulated generation, in ms. |
| onGenerate | (prompt: string, mask: MaskShape[]) => void | — | Called when Generate is pressed, with the mask strokes and polygons. |
| onApply | (variant: number, prompt: string) => void | — | Called when a variant is applied (zero-based position in the picker). |
Pro component
Try the full preview above. Editable source and build guides require Pebble Pro.
