A Bezier Curve

This demonstrates how the bezier tool works - click to move the circles
Processing beziers work the same as Illustrators, but you don't have the benefit of handles to make sure your curves stay nice and smooth.
If you have many points you want to make a curve out of curveVertex() is a better option.

    // Processing JS:
    // http://processingjs.org/