Skip to content

Instantly share code, notes, and snippets.

@georules
Created June 12, 2013 16:16
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 georules/5766820 to your computer and use it in GitHub Desktop.
Save georules/5766820 to your computer and use it in GitHub Desktop.
Tributary inlet
{"description":"Tributary inlet","endpoint":"","display":"svg","public":true,"require":[],"fileconfigs":{"inlet.js":{"default":true,"vim":false,"emacs":false,"fontSize":12},"new.svg":{"default":true,"vim":false,"emacs":false,"fontSize":12},"_.md":{"default":true,"vim":false,"emacs":false,"fontSize":12},"config.json":{"default":true,"vim":false,"emacs":false,"fontSize":12}},"fullscreen":false,"play":true,"loop":true,"restart":false,"autoinit":true,"pause":true,"loop_type":"period","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01,"thumbnail":"http://i.imgur.com/FBi570K.png"}
arm = d3.select("#arm")
arm.attr("stroke","#720808")
//console.log(arm.attr("points"));
//arm.attr("points","173.762,71.217 365.946, 190.405 30.354,369.622")
tributary.run = function(g,t) {
console.log(t)
if(t>0){
x = t * 33;
n = d3.select("#newpath")
n.attr("stroke-width",x+"px")
n.attr("stroke","#ff0000")
}
}
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment