We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › pause within draw()
Page Index Toggle Pages: 1
pause within draw() ? (Read 3134 times)
pause within draw() ?
May 19th, 2009, 8:31pm
 
Hi!
If I have some action running from draw(), is there a way for me to pause it (say to take a screen shot, or examine what has been rendered at that point in time), and then resume the action after perusal?

tia,
-y
Re: pause within draw() ?
Reply #1 - May 19th, 2009, 11:22pm
 
Code:
boolean bStop;
void keyPressed()
{
bStop = !bStop;
 if (bStop)
   noLoop();
 else
   loop();
}
Re: pause within draw() ?
Reply #2 - May 20th, 2009, 11:36am
 
Fantastic! Thanks so much!
Page Index Toggle Pages: 1