xxxxxxxxxx
15
function setup() {
createCanvas(400, 400);
background(225);
loadPixels();
}
function draw() {
for (let x = 0; x < width; x++) {
for (let y = 0; y < height; y++) {
let bright = random(255);
pixels[x + y * width] = color(bright);
}
}
updatePixels();
}