xxxxxxxxxx
36
// In 15 minutes, on a computer generated canvas, any continuous stretch of computer generated canvas, using the p5.js web editor, place no more than fifty points. All of the points should be connected by straight lines.
// define variables for starting & ending points
let x1;
let x2;
let x3;
let x4;
let y3;
var col = {
r: 0,
g: 0,
b: 0
}
function setup() {
createCanvas(400, 400);
background(238, 68, 67);
for (var x1 = 0; x1 < 25; x1++) {
noStroke();
col.r = random(100, 255);
col.b = random(0, 255);
x2 = random(0, 400)
x3 = random(0, 400)
y3 = random(0, 400)
fill(col.r, 0, col.b)
triangle(x1, 5, x2, 20, x3, y3);
}
}
function draw() {
}