/// POPTART FLIES by Zachery Pelletier///
/*
I came up with this idea simple idea while eating potarts in the morning. I was looking at my phone for some
ideas and BAM thats what my mind came up with. We all hate flies and bugs since they always get in the way
when you eat outside or even inside if you have the windows open! They are all around annoying
*/
void setup() {
size(400,400);
ellipseMode(CENTER);
rectMode(CORNERS);
}
void draw() {
background(213,168,105);
///TABLE///
//Top of table
strokeWeight(1);
stroke(0);
rectMode(CORNERS);
fill(34,85,110);
rect(-10,140,400,400);
//Side of table
noStroke();
fill(21,54,65);
rect(0,360,400,400);
///PLATE AND POPTART///
//plate
stroke(0);
strokeWeight(1.5);
fill(191,179,178);
ellipse(100,270,160,130);
strokeWeight(0.9);
fill(156,145,145);
ellipse(100,270,80,65);
//poptart
stroke(0);
strokeWeight(0.7);
fill(251,211,165);
rect(67,230,127,310);
noStroke();
fill(255,255,255,170);
rect(75,240,119,300);
fill(223,0,12);
ellipse(105,250,3,3);
ellipse(89,244,3,3);
ellipse(82,255,3,3);
ellipse(95,263,3,3);
ellipse(110,270,3,3);
ellipse(99,278,3,3);
ellipse(84,281,3,3);
ellipse(92,297,3,3);
ellipse(109,290,3,3);
///GLASS OF JUICE///
//juice
strokeWeight(1);
line(269,130,280,200);
line(280,200,320,200);
line(320,200,328,130);
line(269,130,328,130);
fill(254,196,24);
quad(269,130,328,130,320,200,280,200);
//glass
stroke(0);
strokeWeight(1.7);
line(265,110,280,200);
line(280,200,320,200);
line(320,200,330,110);
noFill();
ellipse(298,110,63,13);
///WINDOW///
//frame
stroke(0);
strokeWeight(1.4);
line(40,0,40,80);
line(40,80,170,80);
line(170,80,170,0);
fill(188,121,50);
quad(40,-10,40,80,170,80,170,-10);
line(60,0,60,60);
line(60,60,150,60);
line(150,60,150,0);
fill(255);
quad(60,-10,60,60,150,60,150,-10);
strokeWeight(0.5);
line(100,0,80,20);
line(130,10,80,50);
line(140,30,120,50);
///FLIES///
//fly 1
noFill();
stroke(200);
strokeWeight(3);
line(397-mouseY,400-mouseX,394-mouseY,397-mouseX);
line(403-mouseY,400-mouseX,406-mouseY,397-mouseX);
stroke(0);
strokeWeight(5);
ellipse(400-mouseY,400-mouseX,4,4);
//fly 2
stroke(200);
strokeWeight(3);
line(250-mouseY,253-mouseX,247-mouseY,250-mouseX);
line(256-mouseY,253-mouseX,259-mouseY,250-mouseX);
stroke(0);
strokeWeight(5);
ellipse(253-mouseY,253-mouseX,4,4);
//fly 3
stroke(200);
strokeWeight(3);
line(50+mouseY,53+mouseX,47+mouseY,50+mouseX);
line(56+mouseY,53+mouseX,59+mouseY,50+mouseX);
stroke(0);
strokeWeight(5);
ellipse(53+mouseY,53+mouseX,4,4);
}
void mouseClicked() {
println("Shoo! Shoo! Get out of here!");
}