Skip to content

Instantly share code, notes, and snippets.

@johnniehard
Created October 19, 2015 10:56
Show Gist options
  • Save johnniehard/017fc561fc38e10c0d82 to your computer and use it in GitHub Desktop.
Save johnniehard/017fc561fc38e10c0d82 to your computer and use it in GitHub Desktop.
For date stamping saved frames
void startRecording()
{
String folder = year() +""+ month() +""+ day() +""+ hour() +""+ minute();
record = true;
}
void record()
{
if(record) saveFrame(folder +"/"+ year() +""+ month() +""+ day() +""+ hour() +""+ minute() +""+ second() +""+ millis() +".png");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment