xxxxxxxxxx
22
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
let x = 0;
let y = 0;
loadPixels();
for (let i = 0; i < width; i++) {
for (let j = 0; j < height; j++) {
let col = color(map(noise(x * y * 2), 0, width * height, 0, 255));
set(x, y, col);
y++;
}
x++;
}
updatePixels();
}