Processing 2.0 video alpha channel
in
Core Library Questions
•
1 year ago
HI,
This may be a stupid one but I have a video (.mov) with an alpha channel embedded and I want to overlay this onto a background image PImage (the end result is I want to overlay a live capture feed).
How can I play the overlayed video with the alpha channel??
Sorry if this is a reeally dumb question but I have looked around and cannot find any reference either in the documentation or in the GSvideo site...
Thanks for any pointers in advance..
Regards
Rob
- import processing.video.*;
- PImage img;
- Movie myMovie;
- void setup() {
- size(960, 640);
- img = loadImage("MovieStart.jpg");
- myMovie = new Movie(this, "Mock.mov");
- myMovie.play();
- }
- void draw() {
- image(img, 0, 0);
- image(myMovie, 0, 0);
- }
- void movieEvent(Movie m) {
- m.read();
- }
2