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.
xxxxxxxxxx
<html>
<head>
<meta charset="utf-8">
<title>Moore curve</title>
<link type="text/css" href="index.css" rel="stylesheet"/>
<script src="https://d3js.org/d3.v3.min.js"></script>
<script src="index.js"></script>
</head>
<body onload="main()"></body>
</html>
Modified http://d3js.org/d3.v3.min.js to a secure url
https://d3js.org/d3.v3.min.js