[ Launch: Tributary inlet ] 6230916 by tarvaina
-
-
Save tarvaina/6230916 to your computer and use it in GitHub Desktop.
Rubenin ja Rasmuksen olio
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":"Rubenin ja Rasmuksen olio","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}},"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/TPidxHf.png"} |
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
var svg = d3.select("svg"); | |
cx = tributary.sw / 2; | |
cy = tributary.sh / 2; | |
svg.append("circle") | |
.attr("cx", cx) | |
.attr("cy", cy) | |
.attr("r", 200) | |
.attr("fill", "#FF0000") | |
svg.append("path") | |
.attr("d", "M 30,134 L 100,100 L 107,65 ") | |
.attr("transform", "translate(172,72)") | |
svg.append("path") | |
.attr("d", "M 168,134 L 100,100 L 91,65 ") | |
.attr("transform", "translate(256,74)") | |
svg.append("circle") | |
.attr("cx", 264) | |
.attr("cy", 261) | |
.attr("r", 32) | |
.attr("fill", "#FFF") | |
svg.append("circle") | |
.attr("cx", 264) | |
.attr("cy", 261) | |
.attr("r", 11) | |
.attr("fill", "#000") | |
svg.append("circle") | |
.attr("cx", 371) | |
.attr("cy", 261) | |
.attr("r", 32) | |
.attr("fill", "#FFF") | |
svg.append("circle") | |
.attr("cx", 371) | |
.attr("cy", 278) | |
.attr("r", 11) | |
.attr("fill", "#000") | |
svg.append("path") | |
.attr("d", "M 41,134 L 141,100 L 120,62 L 51,65 ") | |
.attr("transform", "translate(235,289)") | |
svg.append("path") | |
.attr("d", "M 85,161 L 117,155 L 94,62 L 77,65 ") | |
.attr("transform", "translate(319,397)") | |
svg.append("path") | |
.attr("d", "M 52,161 L 74,160 L 97,62 L 77,65 ") | |
.attr("transform", "translate(155,397)") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment