p5.js
Rotating Line Pivot
A rotating line pivots through random points, revealing an elegant geometric sweep.
Open fullscreenAbout this sketch
Inspired by the 3Blue1Brown IMO geometry discussion, this sketch animates a line rotating around randomly chosen points. Each time the line reaches the next point in angular order, that point becomes the new pivot. Watch how the simple local rule creates a searching, wrapping motion across the whole field.