White color to alpha


    Oct 12 2013 | 12:22 pm
    Hi every one,
    I'm tring to achieve the following things :
    - have an image in black&white, as you can see in enclosure.
    - detect white color
    - replace white by alpha channel (or other color) / and inverse : replace black by alpha channel
    - send it by syphon with alpha channel
    I'm trying to achieve this with slab and alphaglue, but it's doesnt work as expected.
    If i can do this in gl, it would be perfect!
    Do you have any idea ?
    Thanks!

    • Oct 12 2013 | 12:26 pm
      Here is the patch
    • Oct 12 2013 | 7:13 pm
      if you are on max6, you could use jit.gl.pix.
    • Oct 14 2013 | 7:54 pm
      I'm a Max 6 user,
      And i'm very happy !
      Thanks a lot!
      To go further, do you (or other!) it is possible to replace white or black by a variable color ?
      like [matrix 4 char 1 1] to go inside ?
      Thanks again!