void setup(){}
void draw() {}
void keyPressed() {
if (key == 's' || key == 's') {
String filename = "out-"+ timestamp() +".png";
saveFrame(filename);
println("Saved \"" + filename+ "\" to disk");
}
}
String timestamp() {
return year() +"-" + month() +"-" + day() +"-" + hour() +"-" + minute() +"-"+ second();
}