Last active
February 25, 2018 20:35
-
-
Save josdirksen/806e33c678753cd5133c1d40d73e8360 to your computer and use it in GitHub Desktop.
Voronoi fractals using d3.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* { | |
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | |
} | |
span { | |
font-size: smaller; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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