title: Drawing a Bézier curve
body: <p>For a project I'm trying to draw Bézier curves. Now, I created my own <code>BezierCurve</code> class that calculates points via <a href="http://www.niksula.hut.fi/~hkankaan/Homepages/bezierfast.html" rel="nofollow noreferrer">forward differencing</a>. I'm currently drawing the curve by drawing a <code>Line2D.Double</code> between each two points. This is my current output;</p>
  
  <p><img src="https://i.stack.imgur.com/PHu0g.png" alt="enter image description here"><br/><br/>
  The upper curve (1) is the one I drew with my <code>BezierCurve</code> class. The lower curve (2) is the same Bézier curve shifted downwards and drawn by a <code>GeneralPath</code> object (using the <code>curveTo</code> method).</p>
  
  <p>Now, I can't help but notice that (2) looks alot smoother than (1) Of course I could use <code>GeneralPath</code> (or <code>CubicCurve2D.Double</code>) myself, but as this is for a project that's not an option.</p>
  
  <p>Now, my question is, is there anything I can do to make the curve look smoother? I tried simply increasing the number of points and using fillRect() but they show no improvement.</p>