I have a program that users can "draw" onto the window using color detection (OpenCV). Basically paint, but instead of using the mouse, they draw using hand-held colored discs. The color detection isn't perfect and sometimes there are a couple of spots where there is color drawn onto the screen where the user doesn't want.
The drawing is stored as a sprite.
How would I go around making a function such that, on mouse click, a circle of radius 30px around the mouse is erased? I'm assuming that it would not only erase the sprite that has the user's drawing on it but also the background sprite and I'm not sure how I would get around that either...