> show canvas only <


/* built with Studio Sketchpad: 
 *   https://sketchpad.cc
 * 
 * observe the evolution of this sketch: 
 *   https://bard117f12.sketchpad.cc/sp/pad/view/ro.JatVQptJvAP/rev.5
 * 
 * authors: 
 *   Joe Curry-Stodder

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



 //Assingment 2: Self Portrait II
 //Joe Curry-Stodder, [email protected]
 //In this assingment, I am to make an interactive self-portrait
 
 void setup(){
    size(400, 400);
    fill(196);
    textSize(20);
    frameRate(60);
    smooth();
 }
 
 void draw(){
  // Draw a white background
  background(255);
  
  // Set CENTER mode
  ellipseMode(CENTER);
  rectMode(CENTER);
  
  // Draw the top of the HAIR
  noStroke();
  fill(mouseX, mouseY, 23);
  ellipse(200, 190, 225, 225);
  
  // Draw back of head HAIR
  ellipse(200, 225, 200, 175);
  
  // Draw the head (SKIN)
  fill(255, 209, 231);
  ellipse(200, 200, 200, 200);
  
  // Draw the chin (SKIN)
  ellipse(200, 250, 150, 200);
  
  // Draw the bangs (HAIR)
  fill(mouseX, mouseY, 23);
  ellipse(200, 150, 200, 100);
  
  // Draw the forehead (SKIN)
  fill(255, 209, 231);
  ellipse(200, 175, 200, 100);
  
  // Draw the whites of the eyes
  stroke(0);
  fill(255, 255, 255);
  ellipse(130, 180, 30, 25);
  ellipse(270, 180, 30, 25);
  
  // Draw the pupils
  fill(0);
  ellipse(130, 180, 10, 10);
  ellipse(270, 180, 10, 10);
  
  // Draw the nose (SKIN)
  fill(255, 209, 231);
  ellipse(200, 225, 50, 50);
  noStroke();
  rect(200, 200, 50, 50);
  
  // Draw the mouth
  fill(0);
  stroke(0);
  rect(200, 300, 75, 2);
  
  // Print the title of the program
  text("Joe Curry-Stodder's Self-Portriat", 50, 50);
 }