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

available()

Examples
import processing.video.*; 
Capture myCapture; 
 
void setup() { 
  size(200, 200); 
  String s = "Logitech QuickCam Messenger-WDM"; 
  myCapture = new Capture(this, s, width, height, 30);
} 
 
void draw() { 
  // myCapture.available() returns true 
  // when there is a new frame
  if(myCapture.available()) { 
    myCapture.read(); 
  } 
  image(myCapture, 0, 0); 
}
Description Returns "true" when a new video frame is available to read.
Syntax
vid.read()
Parameters
mov any variable of type Capture
Usage Web & Application
Updated on June 14, 2010 12:05:23pm EDT

Creative Commons License