Recitation 11: Workshops by Tiana Lui

For this week’s recitation, I went to Leon’s presentation on media manipulation. We were tasked with editing a title sequence from a tv show, and because game of thrones is currently running its final season, I chose to edit the game of thrones intro.

During recitation, Leon showed us how to add a red filter to our video. My initial thought was to incorporate the red filter and a horror theme into my video. I planned to select violent videos of each actor and have the user be able to reveal those videos when the main Game of Thrones intro video displayed their name. However, the videos I found online were too long. I also wanted to make image animations and on click functions for Emilia Clarke (Daenerys). Because Daenerys is known as 龙马, I wanted to create a function where if the user clicks a button, dragons will pop up in the video.

In my final video, I added 4 functions. If the user clicks the mouse, a video of Tyrion will play. If the user presses ‘n’, an article about Nikolaj Coster-Waldau will appear. If the user presses ‘c’, the wiki fandom about page for cersei will open. Lastly, the up button will display dragons on the screen.

Code

import processing.video.*;

Movie GOT;

Movie Tyrion;

PFont f;

int time;

PImage dragon;

boolean nIsOpen=false;

boolean cIsOpen=false;

int size=floor(random(1,200));

void setup(){

 size(1000,700);

 GOT=new Movie(this,”GOT.mp4″);

 Tyrion=new Movie(this,”Tyrion.mp4″);

 GOT.play();

 dragon=loadImage(“dragon.png”);

}

void draw(){

 time=millis();

 if(mousePressed){

   if(time>3000){

     Tyrion.play();

     if(Tyrion.available()){

       Tyrion.read();

       GOT.pause();

       noTint();

       image(Tyrion,0,0);

     }

   }

 }

 else if(keyPressed){

   if(key==’n’){

     if(nIsOpen==false){

       link(“https://www.vanityfair.com/hollywood/2019/05/game-of-thrones-why-jaime-leaves-brienne-for-cersei-kill-her-nikolaj-interview”);

       nIsOpen=true;

     }

   }

   if(key==’c’){

      if(cIsOpen==false){

        link(“https://gameofthrones.fandom.com/wiki/Cersei_Lannister”);

        cIsOpen=true;

      }

   }

 }

 else{

   if(GOT.available()){

   GOT.read();

   Tyrion.pause();

   tint(255,0,0);

   image(GOT,0,0);

   }

 }

 if(!mousePressed){

   GOT.play();

   image(GOT,0,0);

   if(keyPressed){

     if(key==CODED){

       if(keyCode==UP){

         image(dragon,random(0,1000),random(0,700));

       }

     }

   }

 }

}

Leave a Reply