saveFrame() exports sequential still images that can be assembled into video
Processing’s saveFrame() function saves a snapshot of the current output window. Called inside draw() with a filename containing ’####’, it saves sequentially numbered images to the sketch folder. This image sequence can be imported into video software (QuickTime Pro, etc.) to create a movie at any desired frame rate. Key advantage: if the sketch runs slower than the target frame rate (complex 3D fractals), the video still plays at full speed — you decouple generation time from playback speed. In practice, heavy generative work is rendered overnight on a dedicated machine, with the image sequence assembled into video the next day.
Examples
Automatic capture: saveFrame("frames/screen-####.jpg"); inside draw() captures every frame. Triggered capture: wrap in a keyPressed() block — if (keyCode == ENTER) { saveFrame("screen-####.jpg"); } — to capture only when you like what you see.
Assessment
You are creating a generative fractal animation with 8 levels of recursion that runs at 3 fps on your laptop but you want a 24fps final video. Describe your complete workflow from running the sketch to producing the final video file.