White color to alpha
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!
Here is the patch
gobotest.maxpat
Max Patch
Max Patch
Copy patch and select New From Clipboard in Max.
if you are on max6, you could use jit.gl.pix.
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!