For this assignment I didn’t have a particular design in mind. Instead my objective was to explore the basics of color and shapes, while incorporating codes that would enhance those features. I initially began with random shapes but as I worked with the coordinates I slowly built off of that. For some parts I took inspiration from the things we learned in class in order to get the splashes of colors. There were a few parts that took me a while to figure out, but I kept playing around with it until I got what I wanted it to do.
-Miranda.G
The Code:
void setup()
{
//background(5,5,5);
background(#050505);
size(400, 400);
}
void draw(){
if (mousePressed) {
background(214,192,204);
}
for(int i = 0; i <100; i++);
if(mousePressed){
ellipse(mouseX,mouseY,0,0);
stroke(225);
strokeWeight(3);
fill(252,252,252);//white
ellipse(100,50,90,90);
fill(243,245,146);//yellow
ellipse(100,250,90,90);
fill(240,180,123);//orange
ellipse(225,50,90,90);
fill(5,48,252);//blue
ellipse(225,250,90,90);
fill(242,20,139);//pink
ellipse(350,50,90,90);
fill(153,5,252);//purple
ellipse(350,250,90,90);
smooth();
}
fill(252,252,252);
stroke(225);
strokeWeight(1);
rect(275,200,25,100);
rect(275,0,25,100);
rect(150,0,25,100);
rect(150,200,25,100);
rect(25,0,25,100);
rect(25,200,25,100);
fill(252,252,252);
stroke(225);
strokeWeight(1);
//noStroke();
fill(frameCount * 3 % 255, frameCount * 5 % 255,frameCount * 7 % 255);
rect(0,100,25,100);
rect(0,300,25,100);
fill (252,252,252);
stroke(225);
strokeWeight(3);
//noStroke();
fill(frameCount * 3 % 255, frameCount * 5 % 255,frameCount * 7 % 255);
square(300,300,100);
square(300,100,100);
square(175,300,100);
square(175,100,100);
square(50,300,100);
square(50,100,100);
fill(255-mouseX,mouseX,mouseY);
noStroke();
ellipse(mouseX,mouseY,15,15);
smooth();
}