2016 教學軟體設計 week8
2016-11-03
1.LEAPmotion
    1.0     
LEAPmotion
Setup(PC/Mac)
    1.1  LEAP motion on APP Store
    1.2  Play
2.     
Developer
/Designer
開啟範例:
執行結果:
實作1:
import
de.voidplus.leapmotion.*;
LeapMotion leap;
void setup() {
  size(640, 480,P3D);
  leap = new LeapMotion(this);
}
void draw() {
  background(255);
  int fps = leap.getFrameRate();
  for (Hand hand : leap.getHands ()) {
    hand.draw();
  }
}  
實作1 執行結果:
de.voidplus.leapmotion.*  文件
實作2:顯示hand的座標
實作3:在hand的座標上,顯示一個直徑100的紅色圓。
實作3 執行結果:
實作4:在hand的座標上,顯示一個直徑100的紅色圓,但不顯示hand,
               功能為用hand接coin,hand與coin距離< 100,代表接到得10分。
實作 4執行結果:













沒有留言:
張貼留言