> show canvas only <


/* built with Studio Sketchpad: 
 *   https://sketchpad.cc
 * 
 * observe the evolution of this sketch: 
 *   https://accdf12.sketchpad.cc/sp/pad/view/ro.xPCVwJlecQp/rev.2
 * 
 * authors: 
 *   Eugeni Lee
 *   Michael Kontopoulos
 *   Dansun Hwang
 *   Siyun Oh

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



float rx, ry;    // rectangle x- and y-coordinate
float rd = 100;  // rectangle width
  
float ex, ey;    // ellipse x- and y-coordinate
float ed = 106;  // ellipse diameter
  
void setup() {
  size(640, 360);
  smooth();
  rectMode(CENTER);
   
  // Set the x- and y-coordinates for the rectangle
  rx = width * 0.33; //Same as width/3
  ry = height * 0.5; //Same as width/2
   
  // Set the x- and y-coordinates for the ellipse
  ex = width * 0.66; //Same as 2*width/3
  ey = height * 0.5;
}
  
void draw() {
  background(102);
  rect(rx, ry, rd, rd);
  ellipse(ex, ey, ed, ed);
}