Skip to content

Instantly share code, notes, and snippets.

@enjalot
Created September 25, 2013 05:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enjalot/6695559 to your computer and use it in GitHub Desktop.
Save enjalot/6695559 to your computer and use it in GitHub Desktop.
test
{"description":"test","endpoint":"","display":"svg","public":true,"require":[],"fileconfigs":{"inlet.js":{"default":true,"vim":false,"emacs":false,"fontSize":12},"test.styl":{"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":true,"loop":true,"restart":false,"autoinit":true,"pause":true,"loop_type":"pingpong","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01,"inline-console":true,"controls":{"x":"160.6"},"thumbnail":"http://i.imgur.com/6akO3Yw.png"}
var svg = d3.select("svg")
var x = tributary.control({name: "x", min: 100, max: 302 })
var rect = svg.append("rect")
.attr({
x: x,
y: tributary.anim(100, 200),
width: 200,
height: 200
})
console.log("x", x);
tributary.run = function(g,t) {
console.log(t)
}
rect
fill: #54B8A8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment