AS3 - Chroma Keying in pure AS

588 views Asked by At

Let's say I have a bitmap with 3 circles (red , purple , yellow), I would like (in pure AS, no PixelBender) to post process the image and set the alpha of the yellow pixels to 0.

Can I use the ColorMatrixFilter class, or should I iterate over the entire bitmapData?

This example uses AS2, I'm looking for something similar in AS3

1

There are 1 answers

0
The_asMan On

I think this ColorMatrixFilter would do what you are asking

matrix.concat([1, 1, 0, 0, 0]);