Javascript/jQuery: remove shape/path from canvas
        Posted  
        
            by bobsoap
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by bobsoap
        
        
        
        Published on 2010-04-03T16:43:51Z
        Indexed on 
            2010/04/03
            17:33 UTC
        
        
        Read the original article
        Hit count: 278
        
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!
© Stack Overflow or respective owner