//download the image to the data folder, and choose a movieclip for viewing

import processing.video.*;
Movie myMovie;
PImage img;
int pwidth = 194;
int pheight = 246;
void setup() {
size(640, 480);
frameRate(30);
//choose a movieclip, replace the string below with its name
myMovie = new Movie(this, "P1040237.mov");
// Prints the duration of the movie
println(myMovie.duration());
myMovie.play();
myMovie.loop();
img = loadImage("kid.png");
}
void draw() {
if(myMovie.available()) {
myMovie.read();
}
image(myMovie, 0, 0);
blend(img, 0, 0, pwidth, pheight, mouseX-pwidth/2, mouseY-pheight/2, pwidth, pheight, EXCLUSION);
//stroke(255);
//fill(255);
//ellipse(mouseX,mouseY,150,150);
}