The formatting of
if()
statements aside, your code will save the frame only when the
frameCount == 125
. If you want to keep saving the frame then modulo is handy:
Then you'll get an image every 125 frames.
- if(frameCount % 125 == 0)
- {
- saveFrame(...);
- }