Hello! I know the question is stupid, but still: how can I give each canvas pixel a random color? It seems to be all simple, but there is one BUT.
var canvas = document.getElementById("canvas"); canvas.width = 300; canvas.height = 300; var ctx = canvas.getContext("2d"); for (var y = 0; y < canvas.height; y++) { for (var x = 0; x < canvas.width; x++) { ctx.fillStyle = getRandRGB(); ctx.fillRect(x, y, 1, 1); } } Instead of creating small squares of random colors on all the canvas, he does it 
(Only the top of the canvas is painted)