White color to alpha

Oct 12, 2013 at 5:22am

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 ?


Oct 12, 2013 at 5:26am

Here is the patch

  1. gobotest.maxpat
Oct 12, 2013 at 12:13pm

if you are on max6, you could use jit.gl.pix.


– Pasted Max Patch, click to expand. –


Oct 14, 2013 at 12:54pm

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!


You must be logged in to reply to this topic.