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 › How to start the sketch again
Page Index Toggle Pages: 1
How to start the sketch again? (Read 434 times)
How to start the sketch again?
Jul 7th, 2009, 3:16am
 
The solution is propably very simple, but I can't get it:

When my animation sketch making random patterns reaches end, which is defined by counter, it saves the last frame. After that I want it to clear the screen and start over again. How is it done?  
Re: How to start the sketch again?
Reply #1 - Jul 7th, 2009, 4:03am
 
To clear the screen: use background().
To start over... it depends on your sketch! (reset variables, etc.)
Re: How to start the sketch again?
Reply #2 - Jul 7th, 2009, 9:46am
 
Thanks. It worked.
Page Index Toggle Pages: 1