> show canvas only <


/* built with Studio Sketchpad: 
 *   https://sketchpad.cc
 * 
 * observe the evolution of this sketch: 
 *   https://bard117s14.sketchpad.cc/sp/pad/view/ro.AA0Num4BHsB/rev.171
 * 
 * authors: 
 *   Lauren Harris
 *   Milo Ben-Amotz
 *   
 *   josh abramovici
 *   Keith O'Hara
 *   Stefanie Walker
 *   zoe

 * license (unless otherwise specified): 
 *   creative commons attribution-share alike 3.0 license.
 *   https://creativecommons.org/licenses/by-sa/3.0/ 
 */ 



/*
Milo Ben-Amotz
 [email protected]
 Febuary 3rd, 2014
 Self-Portrait
 This self-portrait is different from the first one I made because it uses random() to generate different colors for the bubble gum. I also used keyPressed to change the background color/erase the ellipses. Drawing with code was difficult because Processing kept giving me errors about mixing active and static modes when I was trying to animate my self-portrait. 
 .
 */

  fdd   
void setup() {
  size (500, 500);
  smooth();
  background(#CCF3FC);
  strokeWeight(1.8);
  frameRate(20);
}

void draw() {
  fill (#D5FFCB);
  ellipse(mouseX, mouseY, 40, 40);
  //face
  fill(#24B4FF);
  ellipse (250, 250, 300, 300);
  //eye
  fill(255);
  ellipse (125, 250, 50, 75);
  //eyeball
  noStroke();
  fill(0);
  ellipse (111, 255, 20, 20);
  //bubble gum
  strokeWeight(1.4);
  stroke(0, 0, 0, 180);
  float g = random(50, 255);
  float r = random(0, 255);
  float b = random(200, 255);
  fill(r, g, b);
  ellipse (125, 350, 70, 70);
  //body
  line(250, 400, 250, 600);
}

void keyPressed() {
  colorMode(RGB);
  background(#FFB2F6);
}