A Lindenmayer system that draws a spiral on a hexagonal tiling, starting from its center. See also a square one.
As in the previous experiment, the X -> XF
rule takes into account the growth in length of the spiral sides. The Y -> Y+XF+X+XF+XF+XF+XF
rule describes the concatenation of full turns of the spiral (note that the second side is always one unit shorter than the others - just look at the top-left part of the figure to see that).
Modified http://d3js.org/d3.v3.min.js to a secure url
https://d3js.org/d3.v3.min.js