Mask and fill

A generative fill editor: paint a mask with a real brush and marching ants, or smart-select an object, describe what goes there, watch the fill bloom out of the mask, swap four candidates in place and keep one as a layer, with undo and redo.

Generative mediaNo. 2232 variationsFree with an account

Playing on its own
Variation
The idea
Generative fill: paint or click-select a region, describe what goes there, compare candidate fills in place, keep one or undo
Autoplay
A brush paints a mask over the empty end of the sideboard and marching ants run round it; "a ceramic vase with tulips" types; Fill pulses the mask and the first vase blooms out of it; four candidates deal in and the third swaps in place; Keep adds a layer; Smart select snaps an outline round the poster and Remove fills it with clean wall; Keep again.
When you click
Paint with mouse, pen or touch; erase with E; smart select with S (or arrows and Enter on the image); [ and ] change the brush; Enter fills, an empty prompt removes; 1 to 4 or the thumbnails compare candidates; Keep or Discard; Ctrl or Cmd and Z undoes, with Shift redoes; Esc clears the mask; layers can be hidden. On phones the tools sit under the image and the fill panel is a docked bottom sheet.
Look
12px framed image, hairline panels, brush trail, marching ants and bloom, sans with mono values type
Variations
Gallery, Darkroom
Files
index.html, style.css, script.js and prompt.md. No framework, no CDN, works offline.

The prompt and the files

Paste the prompt into Claude, ChatGPT, Lovable or any coding agent to rebuild it in your own product, or take the three files as they are.

Loading the files

More generative media

See all