loadPixels(); var draw = function(){ for (var i = 0; i < width*height ; i+=1) { pixels[i] = color(random(255)); } updatePixels(); };