Mostly for my own reference: An old Java Applet which I continue to use to verify that Java Applets works. The applet itself is demonstrating Casteljau's algorithm to draw a Bézier_curve.

You can move the red control points, and then animate the drawing of the curve.