xxxxxxxxxx
17
function setup() {
createCanvas(400, 400);
}
function draw() {
background("lightgray");
fill("white");
stroke("black");
strokeWeight(3);
strokeJoin(ROUND);
//Stops it from randomly cycling super quickly. Press play each time for differently randomized triangle.
frameRate(0);
let D = random(75, 125);
triangle(D, D, D, 3 * D, width - D, height - 3 * D);
}