2015體感互動
2015年3月23日 星期一
week05
int []X=new int[1000];
int []Y=new int[1000];
int now=0;
void setup(){
size(800,800,P3D);
}
void draw(){
background(255);
for(int i=1;i<now;i++){
line(X[i],Y[i],X[i-1],Y[i-1]);
}
}
void mouseDragged(){
X[now]=mouseX;
Y[now]=mouseY;
now++;
}
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言