# BitmapData transit to color

**URL:** https://forum.kirupa.com/t/bitmapdata-transit-to-color/316127
**Category:** flash
**Created:** [November 13, 2010, 2:06pm UTC](https://forum.kirupa.com/t/bitmapdata-transit-to-color/316127 "2010-11-13T14:06:40Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dnkupfer](https://avatars.discourse-cdn.com/v4/letter/d/f17d59/32.png) [@dnkupfer](https://forum.kirupa.com/u/dnkupfer)
#### Post date: [November 13, 2010, 2:06pm UTC](https://forum.kirupa.com/t/bitmapdata-transit-to-color/316127/1 "2010-11-13T14:06:40Z")

</div>

I’d like to change the RGB color of a bitmapData at run time but I’m struggling with the right syntax. For example, imagine I have a dark purple bitmapdata (0x4736c8) and I’d like to transit this bitmapdata to light purple (0xbbb4ed) in one second.

I know I could easily accomplish this by wrapping the bitmapdata in a bitmap and applying colorTransform to the bitmap (or even alpha). But I’m looking for the most efficient way as I’m doing the same operation every frame to all items of a grid (and I’d like to have this grid as big as possible).

Any help will be most appreciated.
