Skip to content

Instantly share code, notes, and snippets.

@kylemcdonald
Created September 27, 2013 12:33
Show Gist options
  • Save kylemcdonald/6727922 to your computer and use it in GitHub Desktop.
Save kylemcdonald/6727922 to your computer and use it in GitHub Desktop.
import processing.video.*;
import java.awt.*;
Capture video;
void setup() {
size(640, 480);
video = new Capture(this, 640, 480);
video.start();
}
void draw() {
image(video, 0, 0 );
}
void captureEvent(Capture c) {
c.read();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment