millis()
Contents
millis()¶
Returns the number of milliseconds (thousandths of a second) since starting the program.
Examples¶
1 2 3 4 5 | def draw():
m = py5.millis()
py5.no_stroke()
py5.fill(m%255)
py5.rect(25, 25, 50, 50)
|
Returns the number of milliseconds (thousandths of a second) since starting the program.
1 2 3 4 5 | def draw():
m = py5.millis()
py5.no_stroke()
py5.fill(m%255)
py5.rect(25, 25, 50, 50)
|