xxxxxxxxxx
17
const step = 5;
function setup() {
createCanvas(800, 800);
noStroke();
}
function draw() {
for (let x = 0; x < width; x+=step) {
for (let y = 0; y < height; y+=step) {
let c = 255 * noise(0.0001 * x * mouseX,
0.0001 * y * mouseY);
fill(c);
rect(x, y, step, step);
}
}
}