Created
August 13, 2012 05:00
-
-
Save roundrobin/3337099 to your computer and use it in GitHub Desktop.
just another inlet to tributary
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
{"editor_editor":{"coffee":false,"vim":false,"emacs":false,"width":1084,"height":564,"hide":false}} |
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
var p1 = [100,100]; | |
var p2 = [200,200]; | |
var p3 = [0,200]; | |
var tX = 210; | |
var tY = 100; | |
for(var i=0; i < 30; i++){ | |
g.append('path') | |
.attr("stroke",'#'+Math.floor(Math.random()*16777215).toString(16)) | |
.attr("stroke-width",3) | |
.attr("fill",'none') | |
.attr("d","M"+p1[0]+","+(p1[1]*Math.cos(i/(-14)))+" L"+(p2[0]*Math.log(i))+","+p2[1]+" L"+p3[0]+","+p3[1]+"Z") | |
.attr('transform','translate(300,100)'); | |
// .attr('transform','translate('+(tX+(i*2))+','+(tY + (i*5))+')') | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment