Draw a smooth curve through a sequence of points

Here’s a simple algorithm for drawing a smooth curve through any sequence of points. The resulting curve is C 2 , which is as smooth as you can get with cubic Bézier curves.