Language \ Environment \ Comparison
 
Index
 
  The Processing 1.0 _ALPHA_ Reference is a work in progress.
If you see any errors or have any comments, please write to: reas at groupc.net
Name  

delay()

   
Examples  
int pos = 0; 
void loop() { 
  background(204); 
  pos++; 
  line(pos, 20, pos, 80); 
  if(pos > width) { 
    pos = 0; 
  } 
  delay(250);  // Stops the program for 250 milliseconds 
} 
Description   Forces the program to stop running for a specified time. Delay time are specified in thousandths of a second. The function call delay(3000) will stop the program for three seconds.
   
Syntax  
delay(milliseconds)
   
Parameters  
milliseconds   int: specified as milliseconds (there are 1000 milliseconds in 1 second)

   
Returns   None
   
Usage   Web & Application
   
   
© 2004 - 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea
Processing is an open project initiated by Ben Fry and Casey Reas