Wrote two “sample” programs of code to capture a screenshot (screenshot.pde) and to capture video (saveVideo.pde). There is not a solution to save video directly with Processing at the moment, but there is one work-around (see comments in saveVideo.pde for explanation).