Oh and to reset an image to its normal color again you apply an new matrix like this:
var originalColour:Array =  [
                                                        1,0,0,0,0,
                                                        0,1,0,0,0,
                                                        0,0,1,0,0,
                                                        0,0,0,1,0
                                                ];
And if you like here is a matrix for sepia, because i know this stuff is hard to find:

var sepiaColors:Array =         [
                                                        0.393, 0.769, 0.189,0,0,
                                                        0.349, 0.686, 0.168,0,0,
                                                        0.272, 0.534, 0.131,0,0,
                                                        0,0,0,1,0
                                                ];      

Have fun playing around,

Sid

On Mar 18, 2008, at 3:40 AM, laurent wrote:

Hi,

What would you suggest to make an image go from color to black and white ?

thanks.
Laurent
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to