# B/W image to color tween, how?

**URL:** https://forum.kirupa.com/t/b-w-image-to-color-tween-how/278870
**Category:** flash
**Created:** [January 6, 2009, 9:26pm UTC](https://forum.kirupa.com/t/b-w-image-to-color-tween-how/278870 "2009-01-06T21:26:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ParanoidAndroid](https://avatars.discourse-cdn.com/v4/letter/p/b19c9b/32.png) [@ParanoidAndroid](https://forum.kirupa.com/u/ParanoidAndroid)
#### Post date: [January 6, 2009, 9:26pm UTC](https://forum.kirupa.com/t/b-w-image-to-color-tween-how/278870/1 "2009-01-06T21:26:22Z")

</div>

my problem is simple: i want an image to start in black and white, and slowly change to the original color image. How can i do this?  
I found a way to make the image in b/w using the ColorMatrixFilter class in AS3, the code would be like this:

```auto
var gscale:ColorMatrixFilter=new ColorMatrixFilter([.2127,.7152,.0722,0,0,
                                                    .2127,.7152,.0722,0,0,
                                                    .2127,.7152,.0722,0,0,
                                                    0,0,0,1,0]);

img_mc.filters=[gscale];

```

the final color matrix filter should look like this:

```auto
var gscale:ColorMatrixFilter=new ColorMatrixFilter([1,0,0,0,0,
                                                    0,1,0,0,0,
                                                    0,0,1,0,0,
                                                    0,0,0,1,0]);

img_mc.filters=[gscale];

```

how can i tween this values?? as far as i know, the tween class only accepts properties like alpha, rotation, etc.  
Any ideas?
