Guest User

Untitled

a guest
Jul 18th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. import jmcvideo.*;
  2. import processing.opengl.*;
  3. JMCMovie myMovie;
  4. URL url;
  5.  
  6. void setup()
  7. {
  8. size(320, 240, P2D);
  9. frame.setResizable(true);
  10. background(0);
  11. myMovie = movieFromDataPath("uwvideo.mov");
  12. myMovie.loop();
  13. }
  14.  
  15. JMCMovie movieFromDataPath(String filename)
  16. {
  17. return new JMCMovie(this, filename, RGB);
  18. }
  19. void draw()
  20. {
  21. tint(255, 20);
  22. image(myMovie,0,0);
  23. }
Add Comment
Please, Sign In to add comment