Rotate a movie

edited October 2014 in How To...

Hi everyone! Is there any way to animate the rotation of an imported movie into processing?

Answers

  • Sorry, but I can't parse your question in a way that makes any sense to me. Are you trying to play a movie, but spin it while it's playing?

  • I think he/she wants to make the movie play rotated. Example: upside down or 90 degrees, either way, same concept I guess.

  • Admittedly I don't use video in Processing, but I don't see why you wouldn't be able to rotate it. Here's a sketch that rotates a rect(), try replacing the rect() with your video:

    void setup() {
      size(600, 600);
    }
    
    void draw() {
      background(255);
      translate(width/2, height/2);
      rotate(radians(frameCount));
    
      // Replace this with your video
      rect(-160, -120, 320, 240);
    }
    
Sign In or Register to comment.