var draw = function() { if (!this.loadPixels) { return; } this.loadPixels(); var pix=this.imageData.data; for(var i=0; i