ARGB

edited May 2015 in How To...

I'm trying to add transparencies to a video so it can play over a live feed in a particular shape. Where do I add "ARGB" in to my code to allow for this?

Answers

  • Maybe the What is a color in Processing? article can be useful?
    Also check loadPixels() and pixels[] in the Reference.

  • You migth wanna check tint() as well .

  • edited May 2015

    Hi here is some of the code;

    myMovie = new Movie(this, "test.mov"); 
      myMovie.loop();
      movieWidth = myMovie.width/10;
      movieHeight = myMovie.height/10; 
    
      pg = createGraphics(640, 480); 
      pg.background(255);
      //pg.rotate(degrees(90)); 
    
    }
    
    public void draw() {  
    
    
     // background(255,0,0); 
      if (client.available()) {
          img = client.getImage(img);
         imageMode(CORNER);
        image(img,0,0,width,height);
    

    What do I need to add to enable the transparency in the quicktime file? Thank you for your help

  • Also sorry, as you can tell I'm extremely new to all of this and can't even post of the forum properly :(

  • Thank you bilmor, I've adjusted my post

  • edited May 2015 Answer ✓

    "What do I need to add to enable the transparency in the quicktime file?"
    Well, you need to re-read the answers that you rejected...
    Or to be more precise in your request.

Sign In or Register to comment.