Javascript/jQuery: remove shape/path from canvas

前端 未结 8 1096
离开以前
离开以前 2021-02-19 05:34

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

<         


        
8条回答
  •  野性不改
    2021-02-19 05:55

    You might try using SVG instead of canvas. There's a fantastic library called Raphaël that makes working with SVG a breeze. It works in all browsers too, including IE6.

    With SVG each shape is its own element that can be moved, transformed, or removed.

提交回复
热议问题