Skip to content

Instantly share code, notes, and snippets.

@lewis500
Created August 17, 2013 21:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lewis500/6258737 to your computer and use it in GitHub Desktop.
Save lewis500/6258737 to your computer and use it in GitHub Desktop.
Electron Setup
{"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"}
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