Skip to content

Instantly share code, notes, and snippets.

@geoffa
Created June 18, 2010 14:10
Show Gist options
  • Save geoffa/443676 to your computer and use it in GitHub Desktop.
Save geoffa/443676 to your computer and use it in GitHub Desktop.
import processing.video.*;
Capture cam;
void setup() {
size(640, 480);
cam = new Capture(this, 1600, 1200);
}
void draw() {
if (cam.available() == true) {
cam.read();
//image(cam, 0, 0);
set(0, 0, cam);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment