frameCount

本参考资料用于Processing 3.0+。 如果你使用的是前一版本,请在使用软件帮助菜单内的参考资料。. If you see any errors or have suggestions, please let us know. If you prefer a more technical reference, visit the Processing Core Javadoc and Libraries Javadoc.

名称

frameCount

示例


void setup()
{  
frameRate(30);


  } 
void draw()
{  
line(0, 0, width, height);


println(frameCount);


  } 
描述 The system variable frameCount contains the number of frames that have been displayed since the program started. Inside setup() the value is 0, after the first iteration of draw it is 1, etc.
相关 frameRate()
frameRate

Updated on October 2, 2018 05:02:10pm EDT

frameCount