beziervis

Watch a Bézier curve build itself

Drag the control points. Each coloured layer is one round of de Casteljau's algorithm: it cuts every segment at the same fraction t, until a single point is left. That point is on the curve.

Drag a point · double-click to add one · right-click (or long-press) a point to remove it

Shape
Show

What you're seeing

A curve with n + 1 control points has degree n. Round 1 joins neighbouring points and marks the spot a fraction t along each segment, giving n new points. Each later round does the same to the previous round's points, so one fewer point is left every time.

After n rounds a single point remains: B(t), the point on the curve. Sweep t from 0 to 1 and it traces the whole curve.

    Same curve in Python

    This code animates the curve on screen now. It updates as you edit.

    pip install "beziervis[anim]"