> show canvas only <


/* built with Studio Sketchpad: 
 *   https://sketchpad.cc
 * 
 * observe the evolution of this sketch: 
 *   https://bard117f12.sketchpad.cc/sp/pad/view/ro.tVF85OAtP82/rev.1355
 * 
 * authors: 
 *   Victoria Castiglione

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



/* Title: Random
    Creator: Victoria Castiglione
    Date: 9/24/12
    E-mail: [email protected]

Description: While thinking about how I wanted to present my self for the reboot of the Self-Portrait assignment, I found myself looking at the past sketches and processing computations we had done in class for inspiration. I really liked the random function and how that affected a program. I felt that that randomness represented the unexpected aspects of my life, therefore it became a self-portratit, but I also found the program was interesting to look at and interact with.

When you move your mouse over the program, the color RGB are affected by the mouses x and y coordinates. Also when you click the mouse over different sections, various different shapes and colors show. All of this is a result of the random function. So while the actual code may not be overwhelmingly complex and long, the result it produces is very interactive and interesting.*/


int cx, cy;


void setup (){
  size(500,500);
  smooth();
  noStroke();
  fill(50);
  frameRate(60);
  background(0);
  
  
}
void mousePressed(){
     rect(random(0,400), random(0,400), random(0,100), random(0,100)); 
     fill(random(0, 255), random(0,255), random(0,255));
     
     }  
  
void draw(){
    cx = random(0, width);
    cy = random(0, height);
    ellipse(cx, cy, 15, 15); 
  fill(mouseX, random(0,255), mouseY);
  }