Source Code: How to Make a Movie in Processing

The following code will allow one to save frames with text in processing.

Press 'r' to begin and stop recording.
Press 'n' to go to the next text.
Press 'p' to go back.

The output will be frames in a folder called 'output.' Then, you'll have to compile these frames in third party software, like QuickTime.