Skip to content

Instantly share code, notes, and snippets.

@roundrobin
Created August 13, 2012 04:36
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/3337008 to your computer and use it in GitHub Desktop.
Save roundrobin/3337008 to your computer and use it in GitHub Desktop.
Another Inlet
{"description":"Another Inlet","endpoint":"","display":"svg","public":true,"require":[],"tab":"edit","display_percent":0.4785166240409207,"play":false,"loop":false,"restart":false,"autoinit":true,"pause":true,"loop_type":"period","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01,"editor_editor":{"coffee":false,"vim":false,"emacs":false,"width":897,"height":409,"hide":false}}
var diameter = 147;
var path = "M 300 50 a "+25+" "+61+" 0 0 0 "+(234)+" "+(8)+" L545,-20 L400,-100Z";
var path2 = "M 300 50 a "+15+" "+61+" 0 0 0 "+(234)+" "+(8)+" L545,-20 L400,-100Z";
g.append('path')
.attr("stroke","black")
.attr("stroke-width",3)
.attr("fill","none")
.attr("d",path)
.attr('transform','translate(100,120)')
.transition()
.duration(1000)
.attr("d",path2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment