Skip to content

Instantly share code, notes, and snippets.

@mk30
Created August 8, 2014 00:00
Show Gist options
  • Select an option

  • Save mk30/e15e95d1d99bde151eb6 to your computer and use it in GitHub Desktop.

Select an option

Save mk30/e15e95d1d99bde151eb6 to your computer and use it in GitHub Desktop.
purple green squigglies
return function (r, w) {
for (var i = 0; i < w.data.length; i += 4) {
w.data[i] = Math.floor((Math.sin(r.data[i]))*255);
w.data[i+1] = Math.floor((Math.tan(r.data[i]/80)-1)*255);
w.data[i+2] = Math.floor((Math.sin(r.data[i]))* 20555);
w.data[i+3] = 255;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment