We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I'm using a webcam for the beginning of my project, but after a while I want to clear the screen and start a whole new page. I can probably do this by covering up the screen with a big white rectangle, however, nothing will cover up the webcam window. The camera part of my code looks like this:
String[] cameras = Capture.list(); cam = new Capture(this, cameras[000]); cam.start();
and then
void draw() { if (cam.available() == true) { cam.read(); }
Since it says if(cam.available() == true), I tried to set cam.available to false, but even that wouldn't work, giving the error, "the field capture.available is not visible." I'm very desperate.
As an alternative, does anyone know a way to make different pages, so when you click a button, it takes everything you've already done away completely? I've looked into it a lot, and found people saying setting the background(255) at the beggining of draw, or doing multiple draws, but I couldn't get it to work. I also tried the redraw() and clear() functions without any success.
PLEASE help
Answers