> show canvas only <


/* built with Studio Sketchpad: 
 *   https://sketchpad.cc
 * 
 * observe the evolution of this sketch: 
 *   https://bard117f12.sketchpad.cc/sp/pad/view/ro.H6$vCHQ$t0J/rev.1587
 * 
 * authors: 
 *   
 *   Dee Cao

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



/*Dee Cao, 09/22/2012, [email protected], Slightly Psychedelic

This self-portrait is simpler than my DesignBlocks portrait because I didn't learn much functions to allow complicated moves (rotation, etc...) like in DesignBlocks. The process of "drawing" is so much more arduous because I had to type in every single line of code and scrutinize the syntax - even a missing ";" can stop the program from running as I want it to. However, this portrait is more interactive compared to the DesignBlock portrait - the pattern moves with the mouse.

*/

void setup(){
    size(400,400);
    background(255);
    smooth();
}
void draw(){
    stroke(mouseX/2,mouseY/2,50,100);
    fill(0,0,0,mouseX/15);

    fill(255);
    ellipse(mouseX+25,mouseY+30,random(20,31),random(20,31));
    ellipse(mouseX+25,mouseY+30,15,15);
    
    strokeWeight(random(1,5));
    //rect lower right
    //fill(0,0,0,mouseX/14);
    rectMode(RADIUS);
    rect(mouseX+55,mouseY+60,random(6,7),7);
    //upper left rect
    rect(mouseX,mouseY-10,random(6,7),7);

    //fill(0,0,0,mouseX/4);
    //rect inside circle
    rect(mouseX+25,mouseY+30,random(6,7),7);

    
    
    frameRate(random(5,63));
   

}
    



void keyPressed() {
  background(mouseX);
}