Name |
millis()毫秒 |
Examples |
void draw() { int m = millis(); noStroke(); fill(m % 255); rect(25, 25, 50, 50); } |
Description |
Returns the number of milliseconds (thousandths of a second) since starting the program. This information is often used for timing events and animation sequences. 返回自启动程序以来的毫秒数 (千分之一秒)。此信息通常用于计时事件和动画序列。 |
Syntax |
millis() |
Returns |
int |
Related |
second() |
- 本文固定链接: http://iprocessing.cn/2017/08/01/millis毫秒/
- 转载请注明: 卡萨布兰卡 于 Processing编程艺术 发表