Curves can be tricky, here are some tools to help (also see the curves tutorial on Processing.org). Click and drag the vertices to see how the values and curves change. The Processing functions that draw these are in grey in the bottom right corner of each sketch.
Bezier Curve Tool
See Bezier();
Begin Shape curveVertex Tool
See curveVertex();