> show canvas only <


/* built with Studio Sketchpad: 
 *   https://sketchpad.cc
 * 
 * observe the evolution of this sketch: 
 *   https://bard117f12.sketchpad.cc/sp/pad/view/ro.aA22K8pnhBU/rev.3
 * 
 * authors: 
 *   Valentina von Klencke

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




/* Valentina von Klencke, 9/20/12, [email protected], Self-Portrait 2  
My second self portrait is more interactive with the mouse as well as with movement.
I used frame Count and made the eyes as well as the mouth move in a specific speed.
I attached words which follow the mouse, and I changed the background colors regarding
to the position of the mouse. If you move the mouse below x 250 the background will
stay one color, and therefore the writing stays to wherever you drag the mouse. In this
self portrait much more is going on than in the design blocks one, and you can play around
with it and its not static. 

*/ 


float r;
float g;
float b;

void setup() {
size(800, 500);
smooth(); 
stroke(4,73,206); 


}

void mousePressed () {
 
}

void draw() {
  if (mouseX>250 && mouseY<=500){
r=random(200);
g=random(190);
b=random(210);
background(r,g,b);
  }
  stroke(4,72,206);
strokeWeight(frameCount % 40); 
fill(255,200,200);
ellipse(300,170,50,100); 
ellipse(400,170,50,100); 
stroke(200);
fill(0); 
strokeWeight(0);
ellipse(350,250,50,50); 
fill (0); 
textSize(64);
text("I am Valentina",mouseX,mouseY); 
stroke(200);
smooth(); 
strokeWeight (frameCount % 50);
fill(127,0,0);
ellipse(350,370,140,90);
  stroke(24);
noFill();

  
}