Skip to content

Instantly share code, notes, and snippets.

@roundrobin
Created June 24, 2012 02:37
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/2981134 to your computer and use it in GitHub Desktop.
Save roundrobin/2981134 to your computer and use it in GitHub Desktop.
just another inlet to tributary
var numberOfRects = 1;
g.append('rect')
.attr('width',100)
.attr('height',100)
.on("touchstart", function(){
g.append('rect')
.attr('width',100)
.attr('height',100 )
.attr('fill','red')
.attr('x',numberOfRects*100);
numberOfRects++;
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment