Skip to content

Instantly share code, notes, and snippets.

@roundrobin
Created August 13, 2012 04:46
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/3337043 to your computer and use it in GitHub Desktop.
Save roundrobin/3337043 to your computer and use it in GitHub Desktop.
just another inlet to tributary
{"editor_editor":{"coffee":false,"vim":false,"emacs":false,"width":701,"height":409,"hide":false}}
var p1 = [100,100];
var p2 = [200,200];
var p3 = [0,200];
g.append('path')
.attr("stroke","black")
.attr("stroke-width",3)
.attr("fill","none")
.attr("d","M"+p1[0]+","+p1[1]+" L"+p2[0]+","+p2[1]+" L"+p3[0]+","+p3[1]+"Z")
.attr('transform','translate('+210+','+100+')');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment