tui: inpainting canvas overlay (keyboard-driven mask editor) #23
Labels
No labels
area:agents
area:ai
area:config
area:dashboard
area:design
area:design-review
area:devtools
area:entities
area:gallery
area:generate
area:image
area:infra
area:meta
area:model-browser
area:navigation
area:presets
area:security
area:sessions
area:settings
area:sharing
area:test
area:ux
area:webhook
area:workdir
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/loom#23
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
User story
As a user in inpaint mode, I want a full-screen canvas to draw a mask over the init image using the keyboard, so that I can inpaint regions without leaving the terminal.
Acceptance criteria
Canvas overlay
GrayImage) sized to the init image is maintained alongsideKeyboard editing
h/j/k/lmoves cursor by one pixel (or brush-radius step); arrow keys duplicateSpacepaints a circular stamp at the cursor; held paint (autorepeat) supportedxerases under the cursor;cclears the whole mask[/]decreases/increases brush radius (1–128)Enterconfirms and returns to Generate with the mask exported as an 8-bit grayscale PNG (white = inpaint region)Esccancels without modifying Generate stateIntegration
Tests
(x, y)with radiusrproduces the expected circle fillOut of scope
References