TomoAlien
Member

Posts: 319
Registered: 06-08 |
You can set speed of fading of FadeTo :/.
Look at this example:
fadeto (0, 0, 0, 1.0, 5.0)
This example will fade to black in 5 seconds with maximum intensity.
Now let's take a look at template:
fadeto (red, green, blue, intensity, speed);
Red, green and blue are for setting color of the fade, remember these are numberic vaules and they go from 0 to 255.
Intensity is for changing transparency of the effect. So if it's 0.5 it will be half-transparent after it finishes fading, and 1.0 it will be maximum intensity.
Speed is how long it takes to fade, like 5.0 makes it fade for 5 seconds, and 2.5 makes it fade for 2 and a half seconds.
If you want to fade out, set the intensity to 0.0.
|