xxxxxxxxxx
16
const step = 5;
function setup() {
createCanvas(300, 300);
noStroke();
}
function draw() {
for (let x = 0; x < width; x+=step) {
for (let y = 0; y < height; y+=step) {
let c = 255 * noise(0.01 * x, 0.01 * y);
fill(c);
rect(x, y, step, step);
}
}
}