Skip to content

Instantly share code, notes, and snippets.

@cfsilence
Created July 16, 2012 18:33
Show Gist options
  • Save cfsilence/3124200 to your computer and use it in GitHub Desktop.
Save cfsilence/3124200 to your computer and use it in GitHub Desktop.
laf-donatello-demo
<script>
for( var i=0; i < 8; i ++ ) {
var x = Math.cos( i*Math.PI/4 )*r;
var y = Math.sin( i*Math.PI/4 )*r;
var circle = paper.ellipse( 250 + x, 250 + y,
120, 75, {
'stroke-width': 4*i,
'stroke': colors[i%8],
'stroke-style': 'solid'
});
ellipse.rotate( (i*Math.PI/4)*180/Math.PI );
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment