[ Launch: test ] a84cd57ae23443724ea4 by MoritzStefaner
-
-
Save MoritzStefaner/a84cd57ae23443724ea4 to your computer and use it in GitHub Desktop.
Path information from Illustrator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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