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

freehand eraser with real time erasing #5742

Closed
TomVanHaver opened this issue Jun 5, 2019 · 2 comments
Closed

freehand eraser with real time erasing #5742

TomVanHaver opened this issue Jun 5, 2019 · 2 comments
Labels
stale Issue marked as stale by the stale bot

Comments

@TomVanHaver
Copy link

TomVanHaver commented Jun 5, 2019

Is your feature request related to a problem? Please describe.
We would like to implement a classic eraser functionality that can erase "real time".

Describe the solution you'd like
When freehand drawing in erase mode (= globalComposteOperation set to "destination-out" on the path) over an existing drawing, the erasing should be applied "real time", so onMouseMove, not onMouseUp.

Describe alternatives you've considered

  • set "globalCompositeOperation" to "destination-out" on the brush
  • apply the erase path intermediate (onMouseMove)
  • apply the erasing on the "main" canvas, and not on the topcanvas (most plausible idea ?)

Additional context
image a: onMouseOver while erasing.
image a

image b: erased after onMouseUp.
image b

@TomVanHaver TomVanHaver changed the title freehand eraser function freehand eraser with real time erasing Jun 6, 2019
@stale
Copy link

stale bot commented Jan 26, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Issue marked as stale by the stale bot label Jan 26, 2020
@stale stale bot closed this as completed Feb 2, 2020
@alexwenbj
Copy link

@TomVanHaver Hi,Tom,I am looking for a eraser for the free drawing scence,would you please share your eraser code for us?Thank you.

@asturur asturur mentioned this issue Apr 11, 2020
@ShaMan123 ShaMan123 mentioned this issue Apr 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Issue marked as stale by the stale bot
Projects
None yet
Development

No branches or pull requests

2 participants