// Malleable Matrix // Robert Carlsen /* Maps a capture object onto a grid of quads which are translated in z-space based on the position of the mouse. Creates a fun distortion effect. */ import processing.video.*; import processing.opengl.*; boolean flip = false; boolean saveFlag = false; Capture video; void setup() { size(640,480,OPENGL); frameRate(60); //smooth(); video = new Capture(this,640,480,15); //println(video.list()); } void draw() { background(102); lights(); noStroke(); int dia = 10; for(int i=0;i