Color Matrix Transformation : Adjust Red Green Blue Channels
This Flash ActionScript tutorial show how to use Color Matrix Transformation to adjust the Red, green and Blue color channels of image.
Flash Tutorial Content:
As we mentioned before that the ColorMatrixFilter class lets you apply a 4 x 5 matrix transformation on the ARGB color and alpha values of every pixel on the input image to produce a result with a new set of ARGB color and alpha values. For example:
Red, 0, 0, 0, Offset,
0, Green, 0, 0, Offset,
0, 0, Blue, 0, Offset,
0, 0, 0, Alpha, Offset
We can adjust the Red green Blue color of Color Matrix transformation matrix by adjusting the RGB channels of a movieclip. To increase red color (e.g. double), simply increase the Red Channel as shown below:
2, 0, 0, 0, 0,
0, 1, 0, 0, 0,
0, 0, 1, 0, 0,
0, 0, 0, 1, 0
The complete Flash Movie of this tutorial is shown as above.
Flash ActionScript Codes:
Almost all flash source codes on this website are free to download. In order to maintain our website, which includes the developement and maintenance of tutorials, we would appreciate your kind contribution by buying some source files at very small fee. Once we get reasonable amount of incentives from contribution or Advertisement sponsors, the source codes will be released for free to download.
Download Flash Source File:
Awaiting to be released.
Remarks:
This Flash Color Matrix Transformation ActionScript tutorial shows how to adjust Red Green Blue color channels of image.