Video Tint Prototype in Processing

Learning to use video in Processing while adding basic tint colours

RAW code

* Loop.
* Shows how to load and play a QuickTime movie file.  


Movie movie;

void setup() {
 size(640, 360);
 // Load and play the video in a loop
 //movie = new Movie(this, “dave.mp4”);
 movie = new Movie(this, “testkittib.mp4”);

void draw() {
 if (movie.available() == true) {;
 //Escribe de arriba hacia abajo ergo si el de abajo es mas grande tapa los de arriba sobreescribe
 noTint(); //aplica usar color original o mejor no usar color
 image(movie, 0, 0, width, height); //tama;o video completo x1 en cero, y1 en cero, x2 el ancho, y2 el largo
 tint(0,255,0); //aplica el color a los de abajo si es el ultimo a todos videos de abajo en RGB    
 image(movie, 0, 0, width/2, height/2); //divides the video by half in esquina izquierda arriba x,y,x/2,y/2
 image(movie, width/2, height/2, width/2, height/2); //esquina derecha abajo


from Tumblr


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s