Skip to content
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

fill 2D polygon between brush strokes when moving the brush while painting #473

Open
cmhulbert opened this issue Mar 13, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@cmhulbert
Copy link
Collaborator

Currently, click-and-drag painting incurs a large amount of over-painting, since the entire area of the brush is painted, even if for example, you only moved by one pixel, and thus the vast majority of the brush volume was painted in the previous paint call.

An alternative would be to determine the location of the previous and current brush movement, and fill a rectangle between them with 2D javafx graphics primitives. You would still over-paint some, on the ends, but significantly less than the current paint operation.

@cmhulbert cmhulbert added the enhancement New feature or request label Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant