zebreus_touchlandscaping/StaticGestures.pde
// Static gesture recognizer patterns
void setupOneDollar() {
  one = new OneDollar(this);
  one.learn("rectangle",
      new int[] {78, 149, 78, 153, 78, 157, 78, 160, 79, 162, 79, 164, 79, 167, 79, 169, 79, 173, 79, 178, 79, 183, 80, 189, 80, 193, 80, 198, 80, 202, 81, 208, 81, 210, 81, 216, 82, 222, 82, 224, 82, 227, 83, 229, 83, 231, 85, 230, 88, 232, 90, 233, 92, 232, 94, 233, 99, 232, 102, 233, 106, 233,
          109, 234, 117, 235, 123, 236, 126, 236, 135, 237, 142, 238, 145, 238, 152, 238, 154, 239, 165, 238, 174, 237, 179, 236, 186, 235, 191, 235, 195, 233, 197, 233, 200, 233, 201, 235, 201, 233, 199, 231, 198, 226, 198, 220, 196, 207, 195, 195, 195, 181, 195, 173, 195, 163, 194, 155, 192, 145,
          192, 143, 192, 138, 191, 135, 191, 133, 191, 130, 190, 128, 188, 129, 186, 129, 181, 132, 173, 131, 162, 131, 151, 132, 149, 132, 138, 132, 136, 132, 122, 131, 120, 131, 109, 130, 107, 130, 90, 132, 81, 133, 76, 133});
  one.learn("x",
      new int[] {87, 142, 89, 145, 91, 148, 93, 151, 96, 155, 98, 157, 100, 160, 102, 162, 106, 167, 108, 169, 110, 171, 115, 177, 119, 183, 123, 189, 127, 193, 129, 196, 133, 200, 137, 206, 140, 209, 143, 212, 146, 215, 151, 220, 153, 222, 155, 223, 157, 225, 158, 223, 157, 218, 155, 211, 154, 208,
          152, 200, 150, 189, 148, 179, 147, 170, 147, 158, 147, 148, 147, 141, 147, 136, 144, 135, 142, 137, 140, 139, 135, 145, 131, 152, 124, 163, 116, 177, 108, 191, 100, 206, 94, 217, 91, 222, 89, 225, 87, 226, 87, 224});

  one.on("rectangle", "rectangleGesture");
  one.on("x", "xGesture");
}

void rectangleGesture(String gestureName, float percentOfSimilarity, int startX, int startY, int centroidX, int centroidY, int endX, int endY) {
  if (percentOfSimilarity >= 0.75) {
    mapManager.initTerrainHeight();
  }
}

void xGesture(String gestureName, float percentOfSimilarity, int startX, int startY, int centroidX, int centroidY, int endX, int endY) {
  if (percentOfSimilarity >= 0.75) {
    save("LatestMap.png");
    System.exit(0);
  }
}
