Updated video examples to reflect new library and class names

This commit is contained in:
codeanticode
2011-08-18 22:32:09 +00:00
parent 88deee7566
commit 57ad715fcf
23 changed files with 210 additions and 214 deletions
@@ -8,16 +8,16 @@
*/
import codeanticode.gsvideo.*;
import processing.video.*;
int numPixels;
int[] previousFrame;
GSCapture video;
Capture video;
void setup() {
size(640, 480); // Change size to 320 x 240 if too slow at 640 x 480
// Uses the default video input, see the reference if this causes an error
video = new GSCapture(this, width, height);
video = new Capture(this, width, height);
video.start();
numPixels = video.width * video.height;
// Create an array to store the previously captured frame