Skip to content

Instantly share code, notes, and snippets.

@enjalot
Created December 9, 2012 01:47
Show Gist options
  • Save enjalot/4242928 to your computer and use it in GitHub Desktop.
Save enjalot/4242928 to your computer and use it in GitHub Desktop.
Tributary
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.
{"description":"Tributary","endpoint":"","display":"svg","public":true,"require":[],"fileconfigs":{"_.md":{"default":true,"vim":false,"emacs":false,"fontSize":12},"background.svg":{"default":true,"vim":false,"emacs":false,"fontSize":12},"config.json":{"default":true,"vim":false,"emacs":false,"fontSize":12},"inlet.js":{"default":true,"vim":false,"emacs":false,"fontSize":12}},"tab":"edit","display_percent":0.7,"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,"hidepanel":false}
//artwork by @baufofthenauf
var svg = d3.select("svg");
svg.selectAll("path")
.style({
//"stroke-width": 1,
//fill: "#351EE0"
})
svg.selectAll("text")
.attr({
"font-size": "10px",
fill:"#000000"
})
svg.insert("rect", ":first-child")
.attr({
width: "100%",
height: "100%",
fill: "#15394D"
})
d3.select("#layer28")
.select(":first-child")
.remove();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment