r/processing • u/edgekira • Sep 20 '24
Paint in processing
does anyone know how to make an eraser function? im doing a paint and i need an eraser that really erases instead of just painting white
4
Upvotes
6
u/v124entkl2 Sep 20 '24
What is beneath the the paint? If it is an image you could make a brush that reapplys the image.
3
u/forgotmyusernamedamm Sep 20 '24
There are two ways to do this in Processing. Neither of them are particularly easy for beginners, which is why it's harder to google.
Hope this helps get you on the right track.
2
u/-Zlosk- Sep 22 '24
If you are using rgba values, you could have the eraser only affect the alpha.