introduction to computation
1.10-2.9.2022
wintersession 2022

let x=0;
let y=0;
let spacing=20;
function setup() {
createCanvas(400, 400);
background(0);
}

function draw() {
strokeWeight(2);
stroke(random(255),random(255), random(255));
if (random(1) less than 0.5){ line(x,y,x+spacing/2,y+spacing);
}
else{
line(x,y+spacing/100,x+spacing,y);
}
x=x+spacing;
if (x>width){
x=0
y=y+spacing;
}
}