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.

Class | MovieMaker

Name

### addFrame()

Examples

    import processing.video.*;

    MovieMaker mm;  // Declare MovieMaker object

    void setup() {
      size(320, 240);
      // Create MovieMaker object with size, filename,
      // compression codec and quality, framerate
      mm = new MovieMaker(this, width, height, "drawing.mov",
                           30, MovieMaker.H263, MovieMaker.HIGH);
      background(204);
    }

    void draw() {
      ellipse(mouseX, mouseY, 20, 20);
      mm.addFrame();  // Add window's pixels to movie
    }

    void keyPressed() {
      if (key == ' ') {
        mm.finish();  // Finish the movie if space bar is pressed!
      }
    }

Description | Adds a new frame to a movie file that is current being created.

Syntax

    mov.addFrame()

Parameters

mov | any variable of type MovieMaker

Usage | Web & Application

Updated on October 14, 2007 02:21:03pm PDT