xxxxxxxxxx
26
//let x = 0;
//let y = 0;
//https://genekogan.com/code/p5js-perlin-noise/
function setup() {
createCanvas(400, 400);
rectMode(CENTER);
noStroke();
}
function draw() {
create();
}
function create() {
for(let x = 0;x < height; x+= 3) {
for(let y = 0;y < width; y+= 3) {
let c = 255 * noise(0.01 * x, 0.01 * y);
fill(c);
rect(x,y, 3,3);
}
}
}