Skip to content

Instantly share code, notes, and snippets.

@enjalot
Created August 26, 2013 06:27
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 enjalot/6338549 to your computer and use it in GitHub Desktop.
Save enjalot/6338549 to your computer and use it in GitHub Desktop.
don't be a
{"description":"don't be a","endpoint":"","display":"svg","public":true,"require":[{"name":"superformula","url":"http://d3js.org/d3.superformula.v0.min.js"}],"fileconfigs":{"inlet.js":{"default":true,"vim":false,"emacs":false,"fontSize":12}},"fullscreen":false,"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,"thumbnail":"http://i.imgur.com/0H50UFt.png"}
//superformula by @d3visualization http://bl.ocks.org/mbostock/1020902
var svg = d3.select("svg");
var iw = 500;
var ih = 383;
svg.append("image")
.attr({
"xlink:href": "http://imgur.com/kuU1DRC.png",
width: iw,
height: ih,
x: tributary.sw/2 - iw/2,
y: tributary.sh/2 - ih/2
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment