Skip to content

Instantly share code, notes, and snippets.

@roundrobin
Created August 6, 2012 03:56
Show Gist options
  • Save roundrobin/3269988 to your computer and use it in GitHub Desktop.
Save roundrobin/3269988 to your computer and use it in GitHub Desktop.
just another inlet to tributary
var txt;
tributary.init = function(g) {
var defs = g.append('defs')
var filter = defs.append('filter')
.attr('id','wooble')
filter.append('feTurbulence')
.attr('result','result0')
.attr('id','fe2')
.attr('seed','0')
.attr('numOctaves','3')
.attr('baseFrequency','0.037');
g.append("circle")
.attr("r",50)
.attr("cx",224)
.attr("cy",100)
.attr("fill","#ff00ff")
.attr("filter","url(#wooble)");
};
tributary.run = function(g,t) {
txt.text(t);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment