xxxxxxxxxx
27
let lbx1,lbx2,lbx3,lbx4;
let lby1,lby2,lby3,lby4;
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
stroke(255,255,40)
strokeWeight(random(1,10))
line(lbx1, lby1, lbx2, lby2);
line(lbx2, lby2, lbx3, lby3);
line(lbx3, lby3, lbx4, lby4);
}
function mousePressed() {
lbx1=int(random(0,350))
lbx2=int(lbx1+int(random(10,50)))
lbx3=int(lbx2+25)
lbx4=int(lbx3+int(random(0,50)))
lby1=int(random(50,60))
lby2=int(random(120,150))
lby3=int(lby2-35)
lby4=int(random(200,300))
}