example
Example
// Learning Processing
// Daniel Shiffman
// http://www.learningprocessing.com

// Example 16-2: Manipulate video image

// Step 1. Import the video library
import processing.video.*;

Capture video;

void setup() {
  size(320,240);
  video = new Capture(this,320,240,15);
  background(255);
}

void draw() {

  if (video.available()) {
    video.read();
  }

  // Tinting using mouse location
  tint(mouseX,mouseY,255);

  // A video image can also be tinted and resized just as with a PImage.
  image(video,0,0,mouseX,mouseY); 
  
}
  • lluft

    to get it to work with processing 2.04a I had to add video.start() in setup()