title: Efficient Line Smoothing and/or Simplification
body: <p>I am creating a <em>painting application</em> in Actionscript (although my question is not Actionscript related). The basic idea is to start painting when the mouse is pressed and tracking the mouse movements. What I want to achieve is:</p>
  
  <ol>
  <li>reduce mouse "noise" and</li>
  <li>create more smoother looking lines. </li>
  </ol>
  
  <p>Right now, (<strong>1</strong>) is problematic because I get thousands of mouse movements within a few seconds. Due to (<strong>1</strong>) the line can look jaggy.
  What current idea: when the user finishes drawing the line, I store all movements in an array and reduce them (median threshold) and then use a spline algorithm to recreate a line. </p>
  
  <p>Any better approaches?</p>