title: Simple algorithm for drawing filled ellipse in C/C++
body: <p>On SO, found the following simple algorithm for drawing filled circles:</p>
  
  <pre><code>for(int y=-radius; y&lt;=radius; y++)
      for(int x=-radius; x&lt;=radius; x++)
          if(x*x+y*y &lt;= radius*radius)
              setpixel(origin.x+x, origin.y+y);
  </code></pre>
  
  <p>Is there an equally simple algorithm for drawing filled ellipses?</p>