Okay - after I just received the nth email of someone who offered to convert my AS2 ColorMatrix class to AS3 I finally have to get out this post: Of course I have created an AS3 version of it a long time ago, I just didn't find the time to document it or create a demo for it.
Anyways in order to save all those helpful people out there any more unnecessary work here is the barebones com.quasimondo.geom.ColorMatrix Version 2.1 for you to download - it's released under MIT License.
Compared to the AS2 version I have added several new methods and of course tried to use optimizations wherever possible. Two new methods that are especially interesting are:
rotateHue() which tries to preserve the luminance whilst changing the hue (which means this is the "correct" but calculation wise more complicated way of doing it).
applyColorDeficiency() which I ported back from the Javascript version that the guys at NoFunc created from my Actionscript version and which allows to preview images the way colorblind people would see it.
Posted at July 09, 2008 05:57 PM | Further reading

