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

Erase support (transparent background only) #18

Merged
merged 4 commits into from Apr 20, 2020

Conversation

tmarzeion
Copy link
Collaborator

Here is PR with code change that allows user to set erase mode.
Set controller.eraseMode = true for erase mode.

Note: This works only for transparent background. If You want this to work with colored background, further code changes are needed. My suggestion is moving background to another canvas, by simply using Stack and inserting simple box view below painter layer.

@tmarzeion tmarzeion mentioned this pull request Apr 20, 2020
@EP-u-NW
Copy link
Collaborator

EP-u-NW commented Apr 20, 2020

Thanks for your work :)
I will merge it now since it seems valid code, but will wait with publishing to pub until I do some more tests. You could expect it to reach pub in about two days.

@EP-u-NW EP-u-NW merged commit 5b8ef19 into EP-u-NW:master Apr 20, 2020
@EP-u-NW
Copy link
Collaborator

EP-u-NW commented Apr 22, 2020

So, I published everything to pub.
Based on your work I was also able to extend the erase mode to erase on none transparent background.
Greate work, thanks again 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants