-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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