Silt Scan effect
Sketch from http://www.flong.com/texts/lists/slit_scan/

import processing.video.*; Capture cam; int X=0; void setup() { cam = new Capture(this, 320, 240); cam.start(); size(600, 240); } void draw() { if (cam.available()) { cam.read(); cam.loadPixels(); // copy documentation - https://processing.org/reference/copy_.html copy(cam, (cam.width/2), 0, 1, cam.height, (X++%width), 0, 1, height); } }