[ Launch: Electron Setup ] 6258737 by lewis500
[ Launch: Electron Setup ] 5621566 by lewis500
-
-
Save lewis500/6258737 to your computer and use it in GitHub Desktop.
Electron Setup
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
{"endpoint":"","display":"svg","public":true,"require":[],"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,"description":"Electron Setup","fileconfigs":{"config.json":{"default":true,"vim":false,"emacs":false,"fontSize":12},"inlet.js":{"default":true,"vim":false,"emacs":false,"fontSize":12},"_.md":{"default":true,"vim":false,"emacs":false,"fontSize":12}},"fullscreen":false,"thumbnail":"http://i.imgur.com/7t9HmVM.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"); | |
var cx = tributary.sw/2; //x of circle center | |
var cy = tributary.sh/2; //y of circle center | |
var radius = 200; //radius of circle | |
var outer = svg.append("circle") | |
.attr({ | |
cx: cx, | |
cy: cy, | |
r: radius, | |
fill: "none", | |
stroke: "#1B8600", | |
"stroke-width": 4 | |
}); | |
//now make a rectangle, and make it so that it rotates upon dragging. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment