2017年1月20日 星期五

80108003E_朱芳慶, Week08

2016-11-03 教學軟體設計 week08
1.     Leapmotion setup(PC/MAC)
1.1       LEAPMOTION App Store
1.2       Play

2.     Developer/Designer

程式碼
import de.voidplus.leapmotion.*;
LeapMotion leap;
void setup() {
  size(640, 480);
  leap =new LeapMotion(this);
}
void draw() {
  background(255);
  for(Hand hand : leap.getHands()){
    hand.draw();
  }
}
----------------------------------------------------------
import de.voidplus.leapmotion.*;
LeapMotion leap;
void setup() {
  size(640, 480);
  leap =new LeapMotion(this);
}
void draw() {
  background(255);
  for(Hand hand : leap.getHands()){
    //hand.draw();
    for(Finger finger : hand.getFingers() ){ 
      finger.draw();
      PVector pos = hand.getPosition();
      //println(pos);
      fill(255,0,0); ellipse(pos.x, pos.y, 100,100);
     }
  }  
}



沒有留言:

張貼留言