/* Base code to draw a grid for use in PCS 6th grade - Z. Wood*/
boolean drawG;


void setup() {

  //set the screen size, variables renamed in different Processing versions
  //size(screen.width, screen.height);
  size(800, 800);

  drawG = true;

  /* change DrawG to false to turn off the grid */
  //drawG = false;
}


/*Method to draw a grid every 50th pixel */
void drawGrid() {
  //the horizontal lines - every 50th pixel draw a line
  stroke(0, 0, 128);
  for (int i=0; i < height/50; i++) {
    line(0, (i+1)*50, width, (i+1)*50);
  }

  //the vertical lines - every 50th pixel draw a line
  stroke(128, 0, 128);
  for (int i=0; i < width/50; i++) {
    line((i+1)*50, 0, (i+1)*50, height);
  }
}

void draw() {
  background(255);
  if (drawG == true) {
    drawGrid();
  }

  stroke(0);
  strokeWeight(3);

  //ears
  fill(0);
  ellipse(200, 200, 300, 300);
 
   //FILL in right ear
   
  //head
  fill(255);
  ellipse(400, 400, 700, 700);
  //eyes
  fill(0);
  ellipse(500, 325, 200, 400);
   //FILL in left eye black spot
 
  fill(255);
   //FILL in left eye white spot
  ellipse(500, 325, 100, 200);
  fill(128);
   //FILL in left eye grey pupil
  ellipse(500, 400, 100, 40);
  //mouth
  line(350, 600, 450, 600);
  
}