NaranS_DMA2016_Processing/ellipse_art/ellipse_art.pde
// Sets the background gray value based on the distance 
// of the mouse from the center of the screen
void setup() {
  size(500,500);
}

void draw() {
  stroke(0,0,255);
  float d = dist(width/2, height/2, mouseX, mouseY);
  float maxDist = dist(0, 0, width/2, height/2);
  float gray = map(d, 0, maxDist, 0, 255);
  fill(255,0,0);
  tint(20);
  ellipseMode(CENTER);
  ellipse(250,250,mouseX,mouseY);
 
}