I would like to dynamically create a folder on the fly using Processing that resides in the same folder as the application. I am working on a time-lapse application that is saving a series of images.
This is what I am currently working with:
import processing.video.*;
Capture cam;
void setup() { size(800, 600);
// If no device is specified, will just use the default. cam = new Capture(this, 800, 600);
background(0,0,0); frameRate(5); }
int i = 1; int framesBetweenShots = 20;
void draw(){ i++; int d = day(); // Values from 1 - 31 int m = month(); // Values from 1 - 12 int y = year(); // 2003, 2004, 2005, etc. int s = second(); // Values from 0 - 59 int mi = minute(); // Values from 0 - 59 int h = hour(); // Values from 0 - 23
//String s = String.valueOf(d);
if (cam.available() == true) { cam.read(); image(cam, 0, 0); }