block by vasturiano aee11f57aaa6b1ec96f1df386166a396

Hilbert Curve

Full Screen

A simple representation of the Hilbert curve, using d3-hilbert layout. Use the slider to modify the curve order (number of iterations). On mouse hover, XY coordinates are reversely converted to curve distance. Zoom/pan the canvas using mouse-wheel/drag events.

See also Morton (Z-order) curve.

index.html

hilbert-demo.js