xxxxxxxxxx
17
function setup() {
createCanvas(1000 , 1000);
noLoop();
}
function draw() {
noStroke();
let pixelSize = 25
for (let x = 0; x < width; x+=pixelSize) {
for (let y = 0; y < height; y+=pixelSize) {
let c = 255 * noise(0.01 * x, 0.01 * y);
fill(c);
rect(x, y, pixelSize, pixelSize);
}
}
}