FAQ
 
 
Cover  \ Exhibition  \ Learning  \ Reference  \ Download  \ Discourse   
      Language \ Environment \ Libraries \ Comparison
 
   
   
Abridged (A-Z) \ Complete (A-Z)  
   
  Reference for Processing (BETA) version 91+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.  
Name  

noLoop()

   
Examples  
void setup() { 
  size(200, 200); 
  noLoop(); 
} 
 
void draw() { 
  line(10, 10, 190, 190); 
} 


void setup() { 
  size(200, 200); 
} 
 
float x = 0.0; 
 
void draw() { 
  background(204); 
  x = x + 0.1; 
  if (x > width) { 
    x = 0; 
  } 
  line(x, 0, x, height); 
} 
 
void mousePressed() { 
  noLoop(); 
} 
 
void mouseReleased() { 
  loop(); 
} 

Description   Stops Processing from continuously executing the code within draw(). If loop() is called, the code in draw() is executed continuously.
   
Syntax  
noLoop()
redraw()
draw()
   
Returns   None
   
Usage   Web & Application
   
Related   loop()
 
 






   
 
Updated: Fri Jul 15 16:35:53 PDT 2005
 
 








Creative Commons License
 
  Processing is an open project initiated by Ben Fry and Casey Reas  
  © Info