ASSIGNMENT 5












void setup() {
  size(500, 500);
}
void draw() { //loops
  color background_color = color(209, 188, 233);
  color gec = color(67, 198, 158); //green eye color
  color mc = color(random (100, 255), 47, 103); // mouth color
  float hs = 45; //head size
  float ed = 10; // eye diameter
  float er = 14; // eye radius
  background(background_color);

  //person #1
  strokeWeight(1);
  ellipse(125, 125, hs, hs); //head #1
  // ellipse(x,y)(diameter)
  fill(gec);
  ellipse(115, 120, ed, er); //left eyeball
  ellipse(135, 120, ed, er); //right eyeball
  fill(mc); 
  arc(125, 135, 12, 12, 0, PI, OPEN); //mouth
  line(125, 150, 125, 320); // body of left person - line(x1,y1,x2,y2)
  //arm of person #1
  line(80, 210, 125, 210); // right arm
  line(125, 210, 170, random(200, 225)); //left arm 
  //right leg on person #1
  line(125, 320, 60, 340);
  //left left on person #1
  line(125, 320, 175, 340);


  strokeWeight(1);
  fill(247, 59, 210);
  ellipse(random(200, 300), 180, hs, hs); //random between coordinates 200 and 300
  //head #2
  fill(gec); 
  ellipse(random(200, 290), 174, ed, er); //left eye
  ellipse(random(200, 310), 174, ed, er); //right eye
  fill(mc);
  arc(random(200, 300), 190, 12, 12, 0, PI, OPEN); //mouth
  line(300, 200, 300, 310); //body of right person
  //arm on person #2
  line(250, 230, 350, 230);
  //left leg on person #2
  line(300, 310, 250, 360); 
  //right leg on person #2
  line(300, 310, 350, random(250, 360));


  //speechbubble
  fill(202, 241, 249);

  ellipse(145, 100, 4, 4);

  ellipse(149, 90, 5, 5);

  ellipse(151, 80, 6, 6);

  ellipse(155, 55, 55, 33);
}