Skip to content

Instantly share code, notes, and snippets.

/Save processing sketch to .jpg Secret
Created Jul 20, 2014

Embed
What would you like to do?
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
You can’t perform that action at this time.