Skip to content

Instantly share code, notes, and snippets.

View eauio's full-sized avatar

Antony Gill eauio

View GitHub Profile
@eauio
eauio / index.html
Last active December 2, 2016 23:30
Interactive Canvas Music Chaconne #1
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
margin: 0;
background: #111;
min-width: 960px;
}
@eauio
eauio / index.html
Last active October 15, 2016 13:55
Voronoi with Music
<!DOCTYPE html>
<meta charset="utf-8">
<canvas width="960" height="960"></canvas>
<audio src="http://eauo.org/antonymy.mp3" type="audio/mpeg" autoplay loop></audio>
<script src="https://d3js.org/d3.v4.0.0-alpha.28.min.js"></script>
<script>
var canvas = d3.select("canvas").node(),
context = canvas.getContext("2d"),
width = canvas.width,