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
<
If you're using JQuery:
var elem = $("selector"); var canvas = elem.get(0); var context = canvas.getContext("2d"); context.clearRect(0, 0, canvas.width, canvas.height); context.beginPath();
Replace "selector" with your actual JQuery selector.