2016年2月25日 星期四

Week 01 02160430 陳繁鑫

Leap Motion 下載:https://www.leapmotion.com/setup

安裝完開啟,右下角綠色表示有偵測到LeapMotion












範例一、偵測手


撰寫自己的程式碼:

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();
  }
}

沒有留言:

張貼留言