Skip to content

Instantly share code, notes, and snippets.

@roundrobin
Created February 8, 2013 23:05
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 roundrobin/4742686 to your computer and use it in GitHub Desktop.
Save roundrobin/4742686 to your computer and use it in GitHub Desktop.
Tributary inlet
{"description":"Tributary inlet","endpoint":"","display":"svg","public":true,"require":[],"fileconfigs":{"inlet.js":{"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}
var defs = g.append('defs')
var filter = defs.append('filter')
.attr('id','myFilterName')
var filter_elem1 = filter.append('feGaussianBlur')
.attr('result','result8')
.attr('id','fe1')
.attr('stdDeviation',0)
g.append('text')
.text("Lorem Ipsum")
.attr({
fill: "#000000",
x : 0,
y: 200,
"font-size": 165,
"font-family": "Arial",
"text-anchor": "start",
"filter" : "url(#myFilterName)"
});
var filter_elem2 = filter.append('feTurbulence')
.attr('result','result7')
.attr('id','fe2')
.attr('seed','27')
.attr('type','fractalNoise')
.attr('numOctaves','5')
.attr('baseFrequency',0.00992)
var i0 = 1;
var i1 = 1;
var i2 = 1;
var vals = [(1.1),(0),(0),(0),(0),(1.1),(0),(0),(0),(0),(1.1),(0),(0),(0),(0),(1.276),(0),(0),(0),(0)].join(" ");
//var vals = [(i0),(-0.044),(-0.208),(0.17952),(0.11904),(1.1),(-0.088),(1.716),(1.1),(0.66),(0.512),(0),(-1.288),(0),(-0.392),(0),(0),(1),(1),(1)].join(" ");
var filter_elem4 = filter.append('feColorMatrix')
.attr('result','result7')
.attr('values',vals)
.attr('id','fe4')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment