Updates for video capture examples, new keywords.txt

This commit is contained in:
Casey Reas
2013-03-05 12:53:13 -08:00
parent 6b5eb6ae55
commit 1ee4d922e3
16 changed files with 122 additions and 58 deletions
@@ -14,9 +14,14 @@ Capture video;
void setup() {
size(640, 480, P2D);
// Uses the default video input, see the reference if this causes an error
// This the default video input, see the GettingStartedCapture
// example if it creates an error
video = new Capture(this, width, height);
video.start();
// Start capturing the images from the camera
video.start();
numPixels = video.width * video.height;
// Create an array to store the previously captured frame
previousFrame = new int[numPixels];