Skip to content

Instantly share code, notes, and snippets.

@RobinMoretti
Created October 10, 2023 05:46
Show Gist options
  • Save RobinMoretti/e8b97ffc01670f9158a8b08fb051843b to your computer and use it in GitHub Desktop.
Save RobinMoretti/e8b97ffc01670f9158a8b08fb051843b to your computer and use it in GitHub Desktop.
Petit script pour enregistrer l'image du canvas à chaque click sur Processing
// 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