xxxxxxxxxx
18
let t = 0;
function setup() {
createCanvas(300, 300);
frameRate(10);
noStroke();
}
function draw() {
for (let x = 0; x < width; x+=5) {
for (let y = 0; y < height; y+=5) {
let c = 255 * noise(0.01 * x, 0.01 * y, t);
fill(c);
rect(x, y, 5, 5);
}
}
t += 0.025;
}