title: HTML5 Remove previous drawn object in canvas
body: <p>I have a polygon object (say a car) drawn inside a HTML5 canvas with help of methods <code>moveTo</code> and <code>lineTo</code>. I want to repeatedly draw that object at different positions in the canvas (simulating a moving object). My problem is that the previous drawn object is not getting cleared. Instead, multiple images are drawn on the canvas. How can I fix this issue?</p>