title: Smooth jagged lines drawn by user in HTML5 canvas app?
body: <p>We have an HTML5 drawing app where users can draw lines using a pencil tool.</p>
  
  <p>Compared to Flash-based drawing apps, the lines have slightly jagged edges and appear somewhat blurry. This happens because users need to keep the line perfectly straight while drawing, or the algorithm senses every pixel deviation and projects it as a jagged edge.</p>
  
  <p>Drawing smooth, sharp circles is impossible as a result.</p>
  
  <p>Somehow, other drawing apps are able to smooth out these jagged edges while letting users draw lines (straight or not).</p>
  
  <p>Is there a way we can smooth out these lines?</p>
  
  <p>Demo (choose the pencil tool): <a href="http://devfiles.myopera.com/articles/649/example5.html" rel="noreferrer">http://devfiles.myopera.com/articles/649/example5.html</a></p>
  
  <p>Our app uses similar code.</p>