Reference+
Name
available()
Class
Capture
Description
Returns "true" when a new frame from the device is available to read.
Examples
import processing.video.*; Capture cam; void setup() { size(200, 200); cam = new Capture(this); cam.start(); } void draw() { if (cam.available()) { // Reads the new frame cam.read(); } image(cam, 0, 0); }
Syntax
.available()
Return
boolean
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.