PDA

View Full Version : Background color transition in a smooth way?


jinliuqi
07-01-2005, 09:30 AM
Hi, guys, I'd like animate my site by let the browser choose their prefered background color.
But I found in the normal way(setRGB), the transition between the different colors is too abrupt, how to make it smoother?
Cheers.

LJK
07-01-2005, 04:16 PM
Hi -
- a fadeIn function you could run on each.
- simple alpha changes w/out a function.
- another layer with a gradient tween set to play when color is changed.

Just ideas to get you started,
El

Tink
07-09-2005, 08:08 AM
you get the best effect by tweening the values of the Color object using getTransform/setTransform. if you tween each color value individually you should get smooth color change

pixelwit
07-09-2005, 02:57 PM
This tutorial (http://www.actionscript.org/tutorials/advanced/Color_fade/index.shtml) might help you out some.

-PiXELWiT
http://www.pixelwit.com