今天第一週
第一堂課
先介紹一下Leap Motion
先去leap網站下載Leap Motion
進入Leap Motion會看到的畫面
開啟Processing
Sketch->Import Library->Add Library->打leap->下載第一個
開啟Leap Motion的範例
File->Examples...
第二堂課
參考範例
自己動手寫會留殘影

不會留殘影
import de.voidplus.leapmotion.*; //匯入函式庫
LeapMotion leap; //宣告
void setup() {
size(800, 600);
leap = new LeapMotion(this);
}
void draw() {
background(255); //沒有這行會有殘影
for (Hand hand : leap.getHands ()){
hand.draw();
}
}
沒有留言:
張貼留言