Skip to content

Instantly share code, notes, and snippets.

@josdirksen
Last active February 25, 2018 20:35
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josdirksen/806e33c678753cd5133c1d40d73e8360 to your computer and use it in GitHub Desktop.
Save josdirksen/806e33c678753cd5133c1d40d73e8360 to your computer and use it in GitHub Desktop.
Voronoi fractals using d3.js
* {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
span {
font-size: smaller;
}
<html>
<head>
<!-- generic stuff -->
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://d3js.org/d3-scale-chromatic.v1.min.js"></script>
<script src="https://unpkg.com/topojson@2"></script>
<script src="https://cdn.jsdelivr.net/lodash/4.17.2/lodash.min.js"></script>
<link rel="stylesheet" href="default.css">
<!-- specific stuff -->
<script src="voronoi.js"></script>
<link rel="stylesheet" href="voronoi.css" type="text/css">
</head>
<body>
<div id="output">
<svg class="chart"></svg>
</div>
<script>
(function() {
show();
})();
</script>
</body>
</html>
View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment