← CHUPCKO's Garage Lab

Hilbert curve

A space-filling Hilbert curve drawn as a single polyline that fills the given square. Each iteration doubles the grid density — mind the line width at high iteration counts. The curve is centered inside the optional box.