Created
March 7, 2011 03:39
-
-
Save MetaThis/858029 to your computer and use it in GitHub Desktop.
Psychedelic Protovis Experiment
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> | |
<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