xxxxxxxxxx
19
function setup() {
createCanvas(400, 200);
noLoop();
}
function draw() {
background(255);
beginShape(POINTS);
for (let x = 0; x < width; x++) {
for (let y = 0; y < height; y++) {
let noiseVal = noise(x*0.02, y*0.02);
stroke(noiseVal*255);
vertex(x,y);
}
}
endShape();
}