FAQ
 
 
Cover  \ Exhibition  \ Learning  \ Reference  \ Download  \ Discourse   
      Language \ Environment \ Libraries \ Comparison
 
   
   
Abridged (A-Z) \ Complete (A-Z)  
   
  Reference for Processing (BETA) version 91+. 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  

saveFrame()

   
Examples  
int x = 0; 
void draw() 
{ 
  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 draw() 
{ 
  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 software and made into movies. These files are saved to the sketch's folder, which may be opened by selecting "Show sketch folder" from the "Sketch" menu.
   
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()
 
 






   
 
Updated: Fri Jul 15 16:36:06 PDT 2005
 
 








Creative Commons License
 
  Processing is an open project initiated by Ben Fry and Casey Reas  
  © Info