I can’t seem to find the function to remove a shape or path from the canvas after it has been created.
So I’m creating a bezier curve between 2 points with
beginPath();
bezierCurveTo();
stroke();
closePath();
How can I remove this from the canvas once it’s been created? I need to be able to call the remove function via toggle() and blur(). I’m sure something exists for this…
Thanks in advance for any help!
Thanks for the great input to all of you – it helped me find the solution:
(link)
This will clear anything within that rectangle.
I found the method on the page I found while digging for ILog’s answer to save/restore the context, and it’s all on there. Thanks again.