Casteljou algorithm.

We visualize in this construction the algorithm of Casteljou. A table is introduced to perform the computations. This example uses 5 points and $P_0 = P_4$, that is, the curve begins and ends at the same point.

Move t to construct the curve. Modify the position of the control points to change the shape of the curve.