Timer + saveframe
in
Programming Questions
•
3 months ago
Hey guys,
I need some help, I'm very new to processing and I'm trying to write a small code that will count from 1 to 59 and then save frame at 59 before starting again,but so far all it does is saves a million frames per minute instead of just one, here's the code I used:
int lastSecond = 0;
void setup(){
size (100, 100);
}
void draw(){
int s = second();
if (s != lastSecond) {
println(s);
}
if (s == 59); {
saveFrame("####.jpg");
}
}
1