Skip to content

Instantly share code, notes, and snippets.

@MoritzStefaner

MoritzStefaner/_.md

Created May 17, 2014
Embed
What would you like to do?
Path information from Illustrator
{"description":"Path information from Illustrator","endpoint":"","display":"svg","public":true,"require":[],"fileconfigs":{"inlet.js":{"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}},"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,"tab":"edit","display_percent":0.7,"thumbnail":"http://i.imgur.com/Z4ghHZY.png","fullscreen":false,"ajax-caching":true}
d3.xml("https://dl.dropboxusercontent.com/u/595496/hexagon.svg", function(xml) {
var path = "M87.5,119H36.9L11.6,75.5L36.9,32h50.6l25.3,43.5L87.5,119z M37.5,118h49.4l24.7-42.5L86.9,33H37.5L12.8,75.5L37.5,118z";
d3.select("svg").append("path").attr("d", path);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment