Visualizing the de Casteljau's Algorithm

A bonus project for Tino Weinkauf's "Introduction to Visualization and Computer Graphics" course at KTH Royal Institute of Technology, very much inspired by Freya Hólmer's "The beauty of Bézier's Curves". She is amazing, go check her work and join her Patreon right away!

tiago.wtf | March 2023 | code

The Bézier curve is built as a combination of linear interpolations, controlled by a single parameter t. You can press PLAY to let t go automatically from 0 to 1 (and then backwards from 1 to 0, and so on), or you can use the slider to manually set t. You can add more control points and move them around.

0.00

Click anywhere to add a new control point!

Confirm a new point here?