Featured 4 / 6 · Structure

Bézier curve construction

Four controls shape a curved handle. To locate its point at t = 1/2, each little calculation only needs two inputs and the same parameter frame.

Bézier curve construction — Four controls describe a curveP0P1P2P3Shared parameter: t = 1/2
Four inputs · one shared parameter

Selected result
What remains connected

What is checked, and where this example stops

The six exact reads agree with an independent Bernstein polynomial at nine parameter samples, including endpoints. Tests also cover open, closed, repeated and reversed controls.

The drawn curve is a presentation of the control recipe. The selected sample and its intermediate points are checked Gojo reads. t = 1/2 is not generally halfway along arc length.

Next experimentFrieze patterns →

Actual fixture source

bezier-construction.gojo

Root 1: six interpolation requests and their shared parameter; root 0 supplies the controls.

This file constructs the connected structure. The validation driver selects reads, actions and bindings for the stepped experiment; parsing this text alone does not run the sequence.

Download .gojo ↓Language reference ↗