Store memory of int change after processing exits
in
Programming Questions
•
11 months ago
Hey all
I'm currently running a piece of work for a show which needs to run for 6 minutes, take a screengrab, exit the program and restart.. I've currently achieved this using a separate program to start the processing app, then exit the program within processing..
I'm having difficulty archiving my screengrabs..
The code thats produced the best results so far is very basic.. however it potentially overwrites previously existing images and is not chronological.
{
if (millis()>=350000) {
saveFrame("data/portrait-######.bmp");
exit();
}
}
i've experimented with archiving in numeric order using a string, however i'm not sure how to create a memory of the current value of the image. My screengrabs overwrite each-other.
int number = 0;
void draw()
{
if (millis()>=
350000) {
{
{
String s = "data/portrait" + nf(number,4) +".bmp";
save(s);
number++;
}
}
Any suggestions on ways to create a memory of the 'number' integer?
Cheers!
1