Skip to content

Instantly share code, notes, and snippets.

@MetaThis
Created March 7, 2011 03:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MetaThis/858029 to your computer and use it in GitHub Desktop.
Save MetaThis/858029 to your computer and use it in GitHub Desktop.
Psychedelic Protovis Experiment
<html>
<head>
<title>Psychedelic Protovis experiment by @MetaThis</title>
<script type="text/javascript" src="http://vis.stanford.edu/protovis/protovis-r3.2.js"></script>
<style type="text/css">
body {
background: black;
margin: 0;
}
#fig {
width: 1200px;
height: 900px;
}
</style>
</head>
<body>
<div id="center"><div id="fig">
<script type="text/javascript+protovis">
var s = 0, vis = new pv.Panel()
.width(document.width)
.height(document.height);
vis.add(pv.Wedge)
.data([2.1,2.1,2.1,2.1,2.1,2.1,2.1,2.1,2.1,2.1,2.1,2.1,2.1,2.1,2.1,2.1,2.1,2.1,2.1,2.1,2.1,2.1,2.1,2.1,2.1,2.1,2.1,2.1,2.1,2.1,2.1,2.1,2.1,2.1,2.1,2.1,2.1,2.1,2.1,2.1,2.1])
.left(800)
.top(470)
.innerRadius(function() this.index * 10 + 2)
.outerRadius(function() this.index * 10 + 8)
.startAngle(function() (s += .0001) * (this.index + 1))
.angle(function(d) d * 2 - d);
setInterval(function() vis.render(), 15);
</script>
</div></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment