Skip to content

Instantly share code, notes, and snippets.

View beatak's full-sized avatar
🍄
Mushroom

Takashi M beatak

🍄
Mushroom
  • San Francisco, CA
View GitHub Profile
jQuery.fn.noisy = function(opacity) {
opacity = opacity || 0.1;
var wrapper = jQuery(this).wrapInner('<div />').children();
var canvas = document.createElement("canvas");
var w = canvas.width = 100;
var h = canvas.height = 100;
var ctx = canvas.getContext("2d");
var x, y, r, g, b;
for (x=0; x < w; ++x) {
for (y=0; y< h ; ++y) {