Beyond handling the rotation of the haxagons at each iteration, this experiment extends the previous by taking into account also the "Flipping" and an additional rotation needed for producing a sequence of hexagons suitable with the Gosper space filling curve.
A certain iteration is flipped if the normal shape of the Gosper curve (shown here) is reversed.
REFRESH for getting a new order.
xxxxxxxxxx
<html lang="en">
<head>
<meta charset="utf-8">
<title>Gosper Islands III</title>
<meta name="description" content="Gosper Islands III">
<script src="https://d3js.org/d3.v3.min.js"></script>
<script src="hept_tree_utils.js"></script>
<link rel="stylesheet" href="index.css">
</head>
<body>
<svg></svg>
<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