week8 呂郁欣 教學軟體筆記
1.leap motion


- leap motion for processing.

撰寫程式

- thumb ,index,middle,ring,pinky

import de.voidplus.leapmotion.*;
LeapMotion leap ;
void setup(){
size(640,480);
leap=new LeapMotion(this);
}
void draw(){
background(225);
for(Hand hand : leap.getHands()){
hand.draw();
for(Finger finger : hand.getFingers()){
finger.draw();
}
}
}
https://developer.leapmotion.com/documentation/java/devguide/Leap_Processing.html
沒有留言:
張貼留言