We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Evening yall, I'm working on a slit-scan experiment that uses video from your computers webcam. Ideally I'd like to be able to adjust the opacity of the video so that I can layer it with other images to create a dynamic abstract effect. Where I'm running into trouble is that tint() is part of PImage and therefore doesn't work on copy().
Here is a sample sketch so you can see what I'm working with/experiment. The source code was originally from here (tweaked for Processing 2.0+) : http://flong.com/texts/lists/slit_scan/
import processing.video.*;
Capture C;
void setup() {
//Camera variables
String[] cameras = Capture.list();
C = new Capture(this, cameras[0]);
size(800, 600, P2D);
C.start();
}
void draw() {
if (C.available()) {
C.read();
}
copy(C, (width/2), 1, 0, height, (X++%width), 0, 1, height); //Can you tint this?
}
Is there a way to create a tint() like effect on slices of frames copied from a webcam as detailed above or do I need to change my approach?