Skip to content

Instantly share code, notes, and snippets.

Created July 20, 2014 22:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/27050402025ebf77f0c5 to your computer and use it in GitHub Desktop.
Save anonymous/27050402025ebf77f0c5 to your computer and use it in GitHub Desktop.
Saves the current frame from Processing and saves it into the sketch folder as a .jpg
/*
Add the code to the end of your draw() function.
Press 's' key to save.
Images saved as output-####.jpg in sketch folder, where #### is the frame number.
*/
if(keyPressed == true && key == 's'){
println("Saving image...");
saveFrame("output-####.jpg");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment