protocollstudio_noisedata_processing/useful.pde
// useful global functions

void push() {
  pushMatrix();
  pushStyle();
}

void pop() {
  popMatrix();
  popStyle();
}

// display background grid
void grid() {
  int rows = height / cellSize;
  int cols = width / cellSize;
  for (int i = 1; i < cols; i++) {
    for (int j = 1; j < rows; j++) {
      stroke(40);
      point(i * cellSize, j * cellSize);
    }
  }
}
