bjornson’s blog

this blog is very young, come again to watch it grow

Archive for the ‘Flash’ tag

Converting images to black and white (Greyscale) with the ActionScript ColorMatrixFilter

without comments

Creating greyscale images with ActionScripts ColorMatrixFilter is easy to do. If you want to preview the settings you can use the following tool.

You can also load any external image into it and play with the Matrix settings.

The code is automatically saved to your clipboard when you click on the output textField. You can simply paste it into your own project and add the filter to your own DisplayObject like this:

myObject.filters = [colorMatrixFilter];

This movie requires Flash Player 9

Written by bjornson

January 31st, 2011 at 5:34 pm