> show canvas only <


/* built with Studio Sketchpad: 
 *   https://sketchpad.cc
 * 
 * observe the evolution of this sketch: 
 *   https://bard117f12.sketchpad.cc/sp/pad/view/ro.LGFf2r3fNoj/rev.3
 * 
 * authors: 
 *   
 *   Abhinanda Bhattacharyya
 *   Sam Taffel
 *   Victoria Castiglione
 *   Ruby Jackson
 *   Dee Cao
 *   Diana Ruggiero
 *   
 *   Aven Helford
 *   Garrett Rosenblum
 *   Georgina
 *   Cole Berry-Miller

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



//Aven Helford, September 12, 2012, [email protected], Self-Portrait II
/*My DesignBlocks self-portrait was completely static, while this Processing
self-portrait contains some dynamic qualities. The use of actual code in this
self-portrait allowed for more freedom in general (especially for the dynamic 
aspect). DesignBlocks seemed a little bit more confusing in the placement of 
shapes and seemed to be a bit less personal in use, whereas Processing programs 
are completely created by the user. Using Processing may take longer to create 
a program, but its end result is able to be more complex than DesignBlocks.
For this program, move the mouse around the screen to change the colors of
the shirt and hat, and also move the eyebrows to change my expression and you
can even use the eyebrows to make a mustache or bow tie!
*/


void setup(){
  size(600,600);
  background(255, 162, 251);
  stroke(255, 162, 251);
  fill(255, 162, 251);
  smooth();
}

void draw(){
 background(255, 162, 251);
  //body
 stroke(0);
 fill(mouseX, mouseY, 90);
 rect(105, 520, 400, 200);
  //head
  smooth();
  stroke(100);
  fill(255, 193, 142);
  ellipse(300, 300, 330, 450);
 //eyes
  stroke(100);
  fill(255);
  ellipse(220, 240, 100, 100);
  stroke(100);
  fill(255);
  ellipse(width-220, 240, 100, 100);
 //pupils
 stroke(0);
 fill(134, 92, 58);
 ellipse(220, 240, 36, 36);
 stroke(0);
 fill(134, 92, 58);
 ellipse(width-220, 240, 36, 36);
 //hat
 fill(mouseX, mouseY, 220);
 rect(170, 70, 260, 90);
 fill(mouseX, mouseY, 220);
 rect(170, 150, 380, 10);
 //eyebrows
 fill(134, 92, 58);
 rect(170, mouseY, 100, 30);
 fill(134, 92, 58);
 rect(width-270, mouseY, 100, 30);
 //mouth
 stroke(100);
 fill(255);
 rect(200, 400, 200, 80);
}