Reference×
Reference
- [] (array access)
- = (assign)
- catch
- class
- , (comma)
- // (comment)
- {} (curly braces)
- /** */ (doc comment)
- . (dot)
- draw()
- extends
- false
- final
- implements
- import
- loop()
- /* */ (multiline comment)
- new
- noLoop()
- exit()
- () (parentheses)
- null
- pop()
- popStyle()
- public
- private
- pushStyle()
- push()
- redraw()
- return
- setLocation()
- ; (semicolon)
- setTitle()
- setResizable()
- setup()
- static
- super
- this
- thread()
- true
- try
- void
Name
millis()
Description
Returns the number of milliseconds (thousandths of a second) since starting the sketch. This information is often used for timing animation sequences.
Examples
void draw() { int m = millis(); noStroke(); fill(m % 255); rect(25, 25, 50, 50); }
Syntax
millis()
Return
int

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.