Reference for Processing version 1.1+. If you have a previous version, use the reference included with your software. If you see any errors or have suggestions, »please let us know. If you prefer a more technical reference, visit the »Processing Javadoc.
| Class | Capture | ||
|---|---|---|---|
| Name | frameRate() | ||
| Examples | import processing.video.*; 
Capture myCapture; 
 
void setup() { 
  size(200, 200); 
  String s = "Logitech QuickCam Messenger-WDM"; 
  myCapture = new Capture(this, s, width, height);
  // Set the frameRate to read 4 new images per second 
  myCapture.frameRate(4);
} 
 
void draw() { 
  if(myCapture.available()) { 
    myCapture.read(); 
  } 
  image(myCapture, 0, 0); 
} | ||
| Description | Sets how often frames are read from a capture device such as a camera. Setting the fps parameter to 4, for example, will cause 4 frames to be read per second. | ||
| Syntax | cam.frameRate() | ||
| Parameters | 
 | ||
| Usage | Web & Application | 

