/* 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(displayWidth, displayHeight);

  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(240);
  if (drawG == true) {
    drawGrid();
  }

  /* Add your face code here */
  //ellipse(200, 200, 200, 200);
}