playfield · docs

docs · 06

Export

Turn a graph into a video file, a PNG sequence or a still, with every frame exact at the frame rate you choose.

Export turns what the graph draws into files: a video (.mp4), a PNG sequence (one image per frame, for editing and compositing tools such as After Effects), or a single still.

Frame by frame

An export renders each frame on its own, at exactly its time. A 60 fps export draws frame 1 at 1/60 of a second, frame 2 at 2/60, and so on, however long each frame takes to draw. So the file never drops a frame, even when the graph is too heavy to play smoothly live.

That is also why motion should be scaled by dt: a graph that changes by a fixed amount each frame would move at a different speed in an export than in the preview. See Time and dt.

Seamless loops

A loop is seamless when every moving part comes back to where it started at the end. Make every period divide the loop's length: for a 4-second loop, sin(TAU * t / 4) turns once and sin(TAU * t / 2) twice. Then the last frame leads straight into the first.

Transparent video

A graph with a transparent background can export with its alpha: as a PNG sequence, or as ProRes 4444.

Your email, to tell you when Playfield opens and about big updates. Nothing else; unsubscribe any time. Privacy