Jump to content
Search Community

colorTransform RGB (advanced)

Esseti test
Moderator Tag

Recommended Posts

Setup: A bitmap with a:

- random 0-255 red rectangle

- random 0-255 green rectangle

- random 0-255 blue rectangle

 

Is there a way to apply a color transform the bitmap, so that I can change every objects color individually ? For instance:

- red rectangle to a random RGB color (not only R)

- green to a random RGB color ...

- blue etc...

Link to comment
Share on other sites

Is there some reason you must put all 3 rectangles into a single Bitmap instead of separating them so that you could logically work with them independently?

 

Anyway, you could look into using BitmapData's paletteMap http://help.adobe.com/en_US/FlashPlatfo ... eMap%28%29 but there's no way to just tween a colorTransform or colorMatrixFilter and have the kind of independent control over portions of colors like that.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...