Here is the Java source of all the applets.
If you want to learn more about the mathematics behind all of this, I recommend An Introduction to Splines for Use in Computer Graphics and Geometric Modelling by Bartels, Beatty and Barsky published by Morgan Kaufman, Los Altos, CA, 1987.