A Lindenmayer system that draws a spiral on a square tiling, starting from its center. See also a hexagonal one.
The X -> XF
rule takes into account the growth in length of the spiral sides (one unit is added for each half turn), while the Y -> Y+XF+XF
describes the concatenation of half turns of the spiral.
xxxxxxxxxx
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="Spiral (L-system)" />
<title>Spiral (L-system)</title>
<link rel="stylesheet" href="index.css">
<script src="https://d3js.org/d3.v3.min.js"></script>
</head>
<body>
<script src="index.js"></script>
</body>
</html>
Modified http://d3js.org/d3.v3.min.js to a secure url
https://d3js.org/d3.v3.min.js