| Language \ Environment \ Comparison |

| Index

| The Processing 1.0 _ALPHA_ Reference is a work in progress. If you see any errors or have any comments, please write to: reas at groupc.net

Name |  | ### saveFrame()
Examples |  |
    int x = 0;
    void loop()
    {
      background(204);
      if(x < 100) {
        line(x, 0, x, 100);
        // Saves each frame as screen-0000.tif, screen-0001, etc.
        saveFrame();
        x = x + 1;
      }
    }
    int x = 0;
    void loop()
    {
      background(204);
      if(x < 100) {
        line(x, 0, x, 100);
        // Saves each frame as line-0000.tif, line-0001, etc.
        saveFrame("line-####.tif");
        x = x + 1;
      }
    }
Description |  | Saves a numbered sequence of images. If saveFrame() is called without parameters, it will have the files as screen-0000.tif, screen-0001.tif, etc. It is possible to specify the name of the sequence with the filename parameter and make the choice of saving TIFF or TARGA files with the ext parameter. These image sequences can be loaded into programs such as Apple's Quicktime and made into movies.
Syntax |  |
    saveFrame()
    saveFrame("filename-####.ext")
Parameters |  |
filename |  | String: any sequence of letters and numbers
ext |  | either "tif" or "tga"
Returns |  | None
Usage |  | Application
Related |  | save()

| © 2004 - 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea |
| Processing is an open project initiated by Ben Fry and Casey Reas |