mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Updated video examples to reflect new library and class names
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user