Curve Fitting Using Bezier Splines

This applet shows how cubic Bezier spline sections can be used to
pass a curve through a set of given points.

One open curve and one closed curve(or loop) are shown here. You can
drag the points which define these curves.

Source Code