is there another version of jit.alphablend that preserves transparency?

Sep 29, 2013 at 11:55am

is there another version of jit.alphablend that preserves transparency?

The way jit.alphablend seems to work is that any cells that were fully transparent on input are converted to fully opaque black on output, i.e 255 0 0 0.

I would prefer if the full transparency of the cell was preserved, e.g. 0 0 0 0.

This would mean I could take the output and use it again for alphablending further down the line.

I’m having a go at writing my own abstraction to do this, but any advice, or links to an object that may do this already, would be appreciated.

#266581
Sep 30, 2013 at 8:58am

This is beginning to drive me a little crazy – any help much appreciated!

#266638
Oct 1, 2013 at 1:42pm

just repack in the alpha plane with the jit.alphablend output (or better yet, use jit.pix and customize however you like):

<code>

– Pasted Max Patch, click to expand. –

</code>

#266761

You must be logged in to reply to this topic.