xxxxxxxxxx
9
//At this stage, I was more playing with loops than trying to create something. I randomly set up the colors and coordinates of the triangles, and with each start they change color and location.
function setup() {
createCanvas(600, 600);
noStroke();
for (let i = 0; i < 50; i++) {
fill(random(30, 230), random(226, 65), random(226, 65), random(226, 65)); //random triangle colors
triangle(random(600), random(700), random(100),random(600), random(700), random(200));
}
}