Skip to content

Instantly share code, notes, and snippets.

@roundrobin
Created July 25, 2012 07:27
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 roundrobin/3174917 to your computer and use it in GitHub Desktop.
Save roundrobin/3174917 to your computer and use it in GitHub Desktop.
just another inlet to tributary
var rect = g.append("rect")
.attr("width",200)
.attr("height",200)
.attr("x",0)
.attr("y",0)
.attr("fill",0)
.attr('transform','translate(100,100)')
for (var i = 0; i < 180; i++){
var rect = g.append("rect")
.attr("width",100)
.attr("height",100)
.attr("x",0)
.attr("fill","#0E8B22")
.attr("y",0)
.attr('transform','translate('+329+',100)rotate('+i+',100,100)')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment