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.
Page Index Toggle Pages: 1
suggestions (Read 1339 times)
Apr 21st, 2010, 3:41pm
the loop() method - wondering if it can accept an argument - int x where x is the number of times code in draw should loop.
right now draw() just continuously loops until noLoop() is called.
A developer should be able to tell the engine - loop only ten times then stop

second - there should be a wait() method to delay execution for some seconds or milliseconds. this enables timing of animation
Re: suggestions
Reply #1 - Apr 22nd, 2010, 1:15am
loop(): I don't see how this is can be useful, and it is very easy to add your own counter and manage noLoop() yourself.
wait(): there is already delay(), that should be used nearly only in noLoop() context.

There are some animation libraries, perhaps they can provide what you look for, and more!
Page Index Toggle Pages: 1