title: Canvas javascript clear path
body: <p>I am testing out a little Canvas programming and I have a question about how to clear previous paths when drawing a new one.</p>
  
  <p>Example:
  Paint a filled circle with no stroke and a stroked line.
  I have the following code: </p>
  
  <pre><code>graphicContext.save();
  graphicContext.beginPath();
  graphicContext.arc(95,50,40,0,2*Math.PI);
  graphicContext.fillStyle="rgb(50, 200, 200)";
  graphicContext.fill();
  graphicContext.restore();
  
  graphicContext.save();
  graphicContext.moveTo(0,0);
  graphicContext.lineTo(200,100);
  graphicContext.stroke();
  graphicContext.restore();
  </code></pre>
  
  <p>However, both the circle and the line are stroked. How can I stroke the line without also stroking the circle?</p>