> show canvas only <


/* built with Studio Sketchpad: 
 *   https://sketchpad.cc
 * 
 * observe the evolution of this sketch: 
 *   https://bard117f12.sketchpad.cc/sp/pad/view/ro.DDsjswk0T$l/rev.114
 * 
 * authors: 
 *   Cole Berry-Miller
 *   Nicole Ouzounis

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



/*Nicole Ouzounis, [email protected] SELF PORTRAIT II
Creating a self portrait in designblocks, like processing, requires trial and error to create a finished product. Creating a sketch in designblocks forces the user to try different commands together, but the understanding of how these elements work together is not as intuitive. This particular self portrait uses lines based on the x and y coordinates of the mouse.The frame count of the sketch changes the color of the center ellipse. The coordinate system in designblocks is different from the processing coordinate system.  */

void setup (){
  size(480,640);
  background(196);
  smooth();
  colorMode(HSB, 360, 100, 100);
  
 }
 
 void mouseDragged(){
  fill(frameCount % 360, 100,100);
  line(pmouseX, pmouseY, width-mouseX, mouseY);
  
}
 
 void draw() {
    fill(frameCount % 360, 100,100);
 ellipse(240, 320, 160,200);
 

 

 
 }