Comments (7)
There is no build in function for that, only an undo function.
You can make an eraser yourselfe if you provide an erase button that sets the foreground color to the background color :)
from painter.
from painter.
There is no build in function for that, only an undo function.
You can make an eraser yourselfe if you provide an erase button that sets the foreground color to the background color :)
That's sufficient if one is drawing on a solid background, however, I'd we great to have a proper eraser functionality, so for instance, it works when one is drawing over an image background. Any plans to implement this?
from painter.
I've added support for erase mode. Note that it works only on transparent background color.
tmarzeion@d2ce37f
Simply set PainterController's eraseMode property to true.
from painter.
Hi,
I already peaked at your code. If you would open a PR, Update the LICENSE file to add your name, and briefly explain in the PR how the erease mode works I would merge it :)
from painter.
@EPNW
#18
Sorry for not supporting colored background, but I don't have enough time to implement that ATM.
from painter.
This is finally implemented, seed #18 and 6251475
from painter.
Related Issues (20)
- operation failed - throws when toImage() is called HOT 2
- Erase Mode Error Flutter Web HOT 2
- Flutter Painter class starts marking from wrong position when wrapping painter with InteractiveViewer
- Null safety HOT 5
- [BUG] Eraser and brush bug. HOT 1
- Support - Adding New custom shape using Custom paint on canvas. HOT 1
- Pinch to zoom capabilities HOT 4
- Permission to make a PR HOT 1
- Disable Multi-Touch | While moving two fingers on canvas painting gets destroyed. HOT 2
- How can I store the location of a path as a list of offsets? HOT 2
- How can I redo? HOT 2
- Not able to re-assign PainterController HOT 3
- Erasing crashes app on mobile web HOT 1
- Don't get the full image (PNG) on mobile HOT 1
- exportAsPNGBytes reduce image quality
- Please provide the support for starting and ending point while user is drawing on the screen HOT 1
- Add a cap option
- Click a dot not working
- Can I record the drawing?
- Please add support to pass our own text
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from painter.