| Fade_Zoom
Creates a new Zoom fade object.
myFade = new Fade_Zoom( Zoom_Level, Blending_Mode )
myFade = new Fade_Zoom( Zoom_Level )
myFade = new Fade_Zoom( )
Return value
Newly created fade object.
Parameters
- Zoom_Level
Amount to zoom the surfaces (default = 2)
- Blending_Mode
Pointer to a blending function; This can be one of your own (takes a value from 0 to 1 and returns a value from 0 to 255) or one of the following:
- Blending_Off
No blending used
- Blending_Linear
Linear blending used (default)
- Blending_Square
Blending amount related to the square of the time
- Blending_Root
Blending amount related to the square root of the time
- Blending_Sine
Starts and ends solid
- Blending_Log
Logarithmic rise in opacity
- Blending_Inverse
Not sure what this does
- Blending_Smooth
More complex version of linear. Gives a more natural result.
- Blending_Power
Interesting blending based on the square of the time
- Blending_Sine2
Again, more interesting, based on the sine of the time
- Blending_Electric
Slow flashing which gets faster towards the end of the fade
- Blending_Bounce
Blending "bounces" through the fade
Comments
The maximum zoom level allowed is 3x. Note that you cannot have a zoom level below 1 either.
JAM © 2005 no one in particular Project started by David Evans in 2005 | |