Search processing.org:

Reference for Processing (BETA) version 0135+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.

Name | ### beginRecord()
Examples |
    import processing.pdf.*;

    void setup() {
      size(400, 400);
      beginRecord(PDF, "everything.pdf");
    }

    void draw() {
      point(mouseX, mouseY);
    }

    void keyPressed() {
      if (key == ' ') {
        endRecord();
        exit();
      }
    }
Description | Opens a new file and all subsequent drawing functions are echoed to this file as well as the display window. The beginRecord() function requires two parameters, the first is the renderer and the second is the file name. This function is always used with endRecord() to stop the recording process and close the file.
Syntax |
    beginRecord(renderer, filename)
Parameters |
renderer | For example, PDF or DXF
filename | String: filename for output
Usage | Application
Related | endRecord()

Updated on July 02, 2007 01:25:59pm PDT