(function($) { $.fn.extend({ noisy : function(params) { return $.extend({ noiseMaker : $.extend({ opacity : .1, width : 20, brightness : 70, monochromatic : false, color: function() { return this.caller.css("background-color"); }, bringNoise : function() { var x, y, canvas = $("", {width: this.width, height:this.width })[0], ctx = canvas.getContext("2d"), colorArr = ($.isFunction(this.color) ? this.color() : this.color).replace(/(rgb\(|rgba\(|\))/gi, "").split(",").map($.trim), r = colorArr[0], g = colorArr[1], b = colorArr[2]; console.log(colorArr); if (this.monochromatic) { for (x=0; x