This example concludes the Gosper Islands series (III, II, I) introducing colored regions. Each region constitutes a distinct area inside the overall Gosper Island. Differently from this previous example, this experiment does not use L-system in order to draw the hexagons composing the island. Instead, the method is totally based on a recursive function that calculates the frotation, rotation, scale and translation of the hexagons.
REFRESH the page in order to get a different result.
xxxxxxxxxx
<html lang="en">
<head>
<meta charset="utf-8">
<title>Gosper Islands IV</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