How can I load all of the pixels that appear on the display window (so all of the PImages, PVectors, video's etc. that are drawn) into a new PImage? I'd like the new PImage to read/detect all of the white pixels that appear on the display window.
I'm trying several things, but I'm not sure how to do this exactly.
Is there a way to use blend() on particles? Or is there a way to make a PImage out of a particlesystem so blend() can be applied to particles? I want all my white particles to blend into a video as a simple way to mask the video.
I now used a particlesystem as a mask for a video using PGraphics, but it is running very slow, partly because I have to draw rectangles instead of points.
My goal is to use particles as a way to mask a video. I am using the kinect to draw the particles, so your silhouette is made out of these particles. Here's how it looks like (my head, made out of particles is masking a video):
If you have any better suggestions, they are also welcome!