/*** Capture and SaveFrame Compiler: Processing 0124 Beta Date: 2007/4/29 Author: Sho Hashimoto WebSite: http://shokai.org ***/ import processing.video.*; Capture camera; void setup(){ size(640, 480); // width, height camera = new Capture(this, width, height, 12); // 12fps } void draw(){ image(camera, 0, 0); } void captureEvent(Capture camera){ camera.read(); } void mousePressed(){ println("saveFrame"); saveFrame("####.jpg"); }