2016年2月25日 星期四

WEEK01_02160136_陳威志

WEEK01
2016.02.25

1.下載並安裝 Leap_Motion_Setup_Windows_2.3.1


2.開啟 processing
   點選 Sketch->Import Library->Add Library
   進入 Add Library後 打上leap 點選 Leap Motion Processing
   點選 File->Examples
   點選 Contributed->Leap Motion for Processing->點擊兩次 e1_basic


3.點選跑出來的範例並Run


4.在原本的空白視窗打上老師教的 程式碼 並Run


程式碼 :

import de.voidplus.leapmotion.*;//標頭檔 告訴程式我要使用這個library
LeapMotion leap;//宣告變數

void setup(){
  size(800,600);//螢幕大小
  leap = new LeapMotion(this);//初始化變數
}
void draw(){
  background(255);//清除之前畫面
  for(Hand hand : leap.getHands ()){
    hand.draw();//畫手手
  }
}


期中題目

剪刀'石頭'布




沒有留言:

張貼留言