Blend modes with Pixel Bender – an update…

I posted this blend mode stuff a long time ago, but the interface was awful and it slipped most people by.

So, I've packaged all the code up into a handy SWC and made a better example application for you to play with.

Here's the test page, and here's the SWC. As well as clicking on the source images to load new ones, you can save your blended creations by clicking on the output window.

To use the code in your own projects (Flash Player 10+) - just link to the the SWC and import madebypi.pixelbender.BlendModes :)

The class has a single static function:

BlendModes.setBlendMode(ob:DisplayObject, blendMode:String);

The supported blend mode names are also static properties of the class - the new Pixel Bender ones all start with '$'

Enjoy