Name | delay() |
||
---|---|---|---|
Examples |
def draw(): line(random(100), random(100), random(100), random(100)) delay(1000) | ||
Description |
The delay() function halts for a specified time. Delay times are specified in thousandths of a second. For example, running delay(3000) will stop the program for three seconds and delay(500) will stop the program for a half-second. The screen only updates when the end of draw() is reached, so delay() cannot be used to slow down drawing. For instance, you cannot use delay() to control the timing of an animation. |
||
Syntax | delay(time) | ||
Parameters |
| ||
Related |
frameRate draw() |
Updated on Tue Feb 27 14:07:12 2024.
If you see any errors or have comments, please let us know.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License