xxxxxxxxxx
25
xoff = 0;
s = 50;
function setup() {
createCanvas(600, 600);
background(240);
noFill();
rectMode(CENTER);
}
function draw() {
xoff = xoff + 0.1
n = noise(xoff) * 20
if (frameCount < 5) {
for (var x = s; x < width - s; x = x + s) {
for (var y = s; y < width - s; y = y + s) {
r = random(s);
rect(x + n, y + n, r);
}
}
}
}