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!