- frameCount
Name(名称):frameCount //帧数
Examples(例子):
void setup() {
frameRate(30);
}
void draw() {
line(0, 0, width, height);
println(frameCount);
}
Description(描述):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.
系统变量frameCount包含自程序启动以来显示的帧数。setup()值是0,在第一次迭代绘制后是1,……。
Related(相关函数):frameRate()
frameRate
- 本文固定链接: http://iprocessing.cn/2017/07/03/framecount帧数/
- 转载请注明: 卡萨布兰卡 于 Processing编程艺术 发表