Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change saturation with tweening

Status
Not open for further replies.

maguskrool

Technical User
Dec 11, 2006
77
0
0
PT
(AS3)


Hi everyone.

I have a gallery filled with photos. The photos are loaded into Sprites and I need to desaturate them. When a Sprite is clicked, its image should return to its original saturation value in a tweened effect. I managed to achieve a desaturated effect using the ColorMatrixFilter, but mostly through experimenting with different values, not the most scientific approach. So:

1 - Is there a better way to change an image's saturation? Or can anyone explain me how to change the ColorMatrixFilter's values to get a certain amount of saturation?

2 - How can I switch between the saturated/desaturated values with a tween-like effect?

Thanks in advance!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top