xxxxxxxxxx
25
let x1;
let y1;
let x2
let y2
function setup() {
createCanvas(500, 500);
x = width/2
y = height/2
background("#879AA9");
}
function draw() {
for (let i = 0; i < 100; i++) {
x1 += random(-2, 2);
y2 += random(-2, 2);
// x2 = x1 + random(-2,2)
// y2 = y1+ random(-2,2)
stroke(255);
line(x1,y1,(x1+random(-20,20)),(y2+random(-20,20)))
}
}