xxxxxxxxxx
34
let h = 20;
function setup() {
createCanvas(500, 600, WEBGL);
background(0);
}
function draw() {
translate(-250,-300);
background(0);
strokeWeight(0.5);
background(255);
beginShape(LINES);
for (let j = 1; j < 20; j++) {
let y = (j*1.5) * h;
let x = h;
for (let i = 1; i <= 40; i += 1) {
vertex(x, y);
x += 10;
y += random(-4,4);
vertex(x, y);
}
}
endShape();
noLoop();
}