Created
October 10, 2023 05:46
-
-
Save RobinMoretti/e8b97ffc01670f9158a8b08fb051843b to your computer and use it in GitHub Desktop.
Petit script pour enregistrer l'image du canvas à chaque click sur Processing
This file contains hidden or 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
// https://processing.org/reference/saveFrame_.html | |
void mousePressed() { | |
// enregistre chaque frame -> screen-0001.tif, screen-0002.tif, etc. | |
saveFrame(); | |
// ou | |
// enregistre chaque frame -> line-000001.png, line-000002.png, etc. | |
saveFrame("line-######.png"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment