Skip to content

Make the Fill tool work on strokes #2615

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Keavon opened this issue Apr 24, 2025 · 0 comments
Open

Make the Fill tool work on strokes #2615

Keavon opened this issue Apr 24, 2025 · 0 comments
Labels
Graphics GPU and graphics programming related

Comments

@Keavon
Copy link
Member

Keavon commented Apr 24, 2025

When hovering over a layer stroke, it should display the dotted overlay like we do for fills:

Image

So in this image, we'd have the white dotted lines over the black layer stroke instead. See https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/strokeStyle.

Additionally, we'd like to prevent the dotted overlays from extending into half the stroke area, like we see above. This can be achieved by using some compositing tricks with the 2D canvas API to render the stroke in such a manner that it erases the drawable area where the fill dotted pattern goes. (This can't affect other overlays also drawn in that area, though, so no erasing the full canvas in that area.)

@Keavon Keavon added the Graphics GPU and graphics programming related label Apr 24, 2025
@github-project-automation github-project-automation bot moved this to Short-Term in Task Board Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Graphics GPU and graphics programming related
Projects
Status: Short-Term
Development

No branches or pull requests

1 participant