1.執行範例檔
2.簡單的Leap Motion程式
LeapMotion leap;//宣告一個LeapMotion
leap =new LeapMotion();
background(255);//使背景為白色
for(Hand hand:leap.getHands())//當讀到手時進入迴圈
hand.draw();//在手的位置畫一個點
3.將簡易程式加入另一個範例程式
PVector p=hand.getPosition();//宣告座標p為手的位置




沒有留言:
張貼留言