期中作品:爆氣飛碟球
本週進度先把背景以及小圓盤畫好,再加上leap motion的程式碼先寫好
void draw() {
background(255);
for (Hand hand : leap.getHands ()) {
//hand.draw();
//pushMatrix();
PVector pos = hand.getPosition();
fill(0);
ellipse(pos.x, pos.y, 100, 100);
//popMatrix();
}
fill(0);
rect(0, 580, 1200, 20);
rect(0, 0, 1200, 20);
rect(0, 0, 20, 200);
rect(0, 400, 20, 200);
rect(1180, 0, 20, 200);
rect(1180, 400, 20, 200);
ellipse(ballX, ballY, 60, 60);
}
沒有留言:
張貼留言