block by nitaku 6526710

Moore curve (L-system)

Full Screen

A Moore space-filling looping curve drawn with an implementation of an L-system renderer.

The Moore curve is a looping variation of a Hilbert curve, obtained by justaxposing 4 Hilbert curves. The last and the first point could be connected in order to draw a closed line.

The L-system rules are the same defined for the Hilbert curve, but the axiom is different.

The drawing of the line is animated using Mike Bostock’s stroke dash interpolation.

index.js

index.html

index.coffee

index.css

index.sass