首页 > 文档 > frameCount帧数
2017
07-03

frameCount帧数

  1. 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



最后编辑:
作者:卡萨布兰卡
这个作者貌似有点懒,什么都没有留下。

留下一个回复

你的email不会被公开。