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.