Processing Assignment 1

I aimed to create something that was both fun and colorful. I didn’t want to create shapes or figures that were too complex (as I’m still getting the hang of making them) but so far I have what is my interpretation of confetti and chaos through a mix of circles, squares, and elongated triangles that, upon clicking the mouse, appear in random colours and can be dragged across the screen.

This is my code (so far):

void setup(){
size (600,400);
background(0,0,0);

}
void draw(){
frameRate(10);
stroke(10);
if(mouseY<640);
if (mousePressed){
ellipse(mouseX,mouseY,28,28);
rect(mouseX,15,mouseY,15);
triangle(mouseX,35,mouseY,100,100,250);
fill(random(150,255),random(150,255),random(150,255));}

if(mouseX<75);
if(mousePressed){
stroke(1);
ellipse(mouseY,Y,30,30);
rect(mouseX,mouseY,20,20);
fill(random(150,255),random(150,255),random(150,255));
}
if(mouseX>420){
strokeWeight(1);

}} //<>// //<>// //<>//