1 import processing.video.*;
3 // Variable for capture device
11 colorMode(RGB, 255, 255, 255, 100);
13 img = new Capture(this, width, height, 12);
20 if (img.available()) {
26 PImage edgeImg=new PImage(img.width/2, img.height);
27 edgeImg.copy(img, 0, 0, img.width/2, img.height,
28 0, 0, edgeImg.width, edgeImg.height);
31 image(edgeImg, img.width/2, 0);