aaaven_See-Through-Kinect-Spring2018/03_leapmotion_intro/sketch_2_3_leapMotion_pinch/sketch_2_3_leapMotion_pinch.pde
//Aven, See Through Kinect, Spring 2018
//https://github.com/aaaven/STK2018/wiki/


float finger1X, finger1Y;
float finger2X, finger2Y;


void setup() {
  // OPENGL(depricated) to P3D
  size(800, 500, P3D);
  background(255);
  noStroke();
  LeapSetup();
}


void draw() {
  background(255);
  LeapRun();
  
  float distance = dist(finger1X,finger1Y,finger2X,finger2Y);
  if (distance < 30) {
    fill(200,200);
    ellipse(finger1X, finger1Y, 300,300);
  }
  
  fill(255,0,0,200);
  ellipse(finger1X, finger1Y, 30,30);
  
  fill(255,255,0200);
  ellipse(finger2X, finger2Y, 30,30);
}