Sunday, March 23, 2008

GlowFX




View SWF online
Download source
Download SWC


I made this into a component;
so whenever I want to use this effect,
all I have to do is drag it out from the component library window in Flash.

I't s mechanism is quite simple:
1. Copy the pixels below GlowFX.
2. Use BitmapData.threshold() to clear out pixels that are not of the target color.
3. Apply GlowFilter to this BitmapData.
4. Done!