2008年4月7日 星期一

frameRate

void setup(){
size(800,600);
background(255,255,255);
frameRate(30);
//noLoop();
}

void draw(){
float x,y,lx,ly;
x = random(0,800);
y = random(0,600);
lx = random(0,100);
ly = random(0,100);
rect(x,y,lx,ly);
}

frameRate = (每秒所能處理的畫面)
簡單而言就是每秒動作頻率
相當於FPS (frames per second) 數值...

沒有留言: