xxxxxxxxxx
26
var stick = {
x1: 0,
x2: 0,
xa: 100,
xb: 100
}
function setup() {
createCanvas(400, 400);
background(255);
}
function draw() {
var b = random(50,230)
stick.xa = random(0, 400);
stick.xb = random(0, 400);
stroke(0, 240, b);
line(0, 0, stick.xa, stick.xb);
stick.x1 = random(0, 400);
stick.x2 = random(0, 400);
stroke(0, 240, b);
line(stick.x1, stick.x2, 400, 400);
}