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 › Best way to count frames
Page Index Toggle Pages: 1
Best way to count frames? (Read 231 times)
Best way to count frames?
Jan 30th, 2009, 8:45pm
 
Is there a function that returns the number of frames rendered since the start of an applet?

I'd like to be able to render my frames to a movie file and have it automatically stop rendering and exit after a specified number of frames. The obvious way seems to be a counter that i increment at the beginning of draw() but it'd be cool if there was something built in.
Re: Best way to count frames?
Reply #1 - Jan 30th, 2009, 9:01pm
 
I think that the better will be to use frameCount

http://processing.org/reference/frameCount.html

Bye
Page Index Toggle Pages: 1