[handle] = DisplayTransitionFX(id[, table])
#SLOWSPEED
, #NORMALSPEED
,
#FASTSPEED
) or a custom fine-tuned numeric value. The rule of thumb
for the speed parameter: the higher the value the faster the transition
will run.
For the best effect, the new background picture should have the same dimensions as the old. If this is not the case, the old background picture will be scaled to the size of the new one.
Note that transparent BGPics cannot be displayed using a transition effect. It is also not possible to display a non-transparent BGPic with transition effect if the current BGPic is a transparent one. For this function to work, two conditions must be met: The current BGPic as well as the new BGPic must both be non-transparent.
Starting with Hollywood 4.0 this function uses a new syntax with just a single table as an optional argument. The old syntax is still supported for compatibility reasons. The optional table argument can be used to configure the transition effect. The following options are possible:
Type:
#RANDOMEFFECT
)
Speed:
#NORMALSPEED
)
Parameter:
#RANDOMPARAMETER
)
Async:
True
here DisplayTransitionFX()
will exit immediately, returning a handle to an asynchronous
draw object which you can then draw using AsyncDrawFrame().
See AsyncDrawFrame for more information on asynchronous draw objects.
X:
#KEEPPOSITION
. Defaults to #CENTER
.
Y:
#KEEPPOSITION
. Defaults to #CENTER
.
The following effects are currently available:
#HSTRIPES2
, #HSTRIPES4
, #HSTRIPES16
, #HSTRIPES32
#VSTRIPES2
, #VSTRIPES8
, #VSTRIPES16
, #VSTRIPES32
#HBLINDS8
, #HBLINDS16
, #HBLINDS32
, #HBLINDS64
, #HBLINDS128
#VBBLINDS8
, #VBLINDS16
, #VBLINDS32
, #VBLINDS64
, #VBLINDS128
#HOPENCURTAIN
, #HCLOSECURTAIN
#VOPENCURTAIN
, #VCLOSECURTAIN
#HLINES
, #HLINES2
#VLINES
, #VLINES2
#REVEALLEFT
, #REVEALRIGHT
, #REVEALTOP
, #REVEALBOTTOM
#BARS
#QUARTERS
#CROSSFADE
#FADE
; optional argument specifies color to use
#BLEND
; optional argument specifies color to use for blending
Starting with Hollywood 1.5 there are some new effects:
#RECTCENTER
, #RECTNORTH
, #RECTNORTHEAST
, #RECTEAST
, #RECTSOUTHEAST
,
#RECTSOUTH
, #RECTSOUTHWEST
, #RECTWEST
, #RECTNORTHWEST
#RECTBACKCENTER
, #RECTBACKNORTH
, #RECTBACKNORTHEAST
,
#RECTBACKEAST
, #RECTBACKSOUTHEAST
, #RECTBACKSOUTH
,
#RECTBACKSOUTHWEST
, #RECTBACKWEST
, #RECTBACKNORTHWEST
#SCROLLLEFT
, #SCROLLRIGHT
, #SCROLLTOP
, #SCROLLBOTTOM
(optional argument specifies a special effect to apply to the
scroll process, you can use the same effects here like in
MoveBrush())
#STRETCHLEFT
, #STRETCHRIGHT
, #STRETCHTOP
, #STRETCHBOTTOM
,
#HSTRETCHCENTER
, #VSTRETCHCENTER
#ZOOMCENTER
, #ZOOMNORTH
, #ZOOMNORTHEAST
, #ZOOMEAST
, #ZOOMSOUTHEAST
,
#ZOOMSOUTH
, #ZOOMSOUTHWEST
, #ZOOMWEST
, #ZOOMNORTHWEST
#HFLOWTOP
, #HFLOWBOTTOM
, #VFLOWLEFT
, #VFLOWRIGHT
#HOPENGATE
, #HCLOSEGATE
, #VOPENGATE
, #VCLOSEGATE
(B)
#PUSHLEFT
, #PUSHRIGHT
, #PUSHTOP
, #PUSHBOTTOM
(B)
#PUZZLE
#DIAGONAL
#ROLLTOP
#WALLPAPERTOP
#VSTRIPES
; optional argument specifies the
number of stripes to display
#HSTRIPES
; optional argument specifies the
number of stripes to display
Starting with Hollywood 1.9 there are a number of new effects:
#SCROLLNORTHEAST
, #SCROLLSOUTHEAST
, #SCROLLSOUTHWEST
, #SCROLLNORTHWEST
(optional argument specifies a special effect to apply to the
scroll process, you can use the same effects here like in
MoveBrush())
#CLOCKWIPE
#STAR
#HSTRANGEPUSH
, #VSTRANGEPUSH
(B)
#SLIDELEFT
, #SLIDERIGHT
, #SLIDETOP
, #SLIDEBOTTOM
(B)
#SPIRAL
#SWISS
#QUADRECT
#HSPLIT
, #VSPLIT
#UPNDOWN
#CARDTOP
, #CARDBOTTOM
(B)
#SUN
#WATER1
, #WATER2
, #WATER3
, #WATER4
(!)
#STRUDEL
(!)
#DISSOLVE
#PIXELZOOM1
#PIXELZOOM2
(B)
#ZOOMIN
, #ZOOMOUT
(B)
#CRUSHLEFT
, #CRUSHRIGHT
, #CRUSHTOP
, #CRUSHBOTTOM
(B)
#VFLIPCOIN
, #VLOWFLIPCOIN
, #HFLIPCOIN
, #HLOWFLIPCOIN
(B)
#TURNDOWNTOP
, #TURNDOWNBOTTOM
, #TURNDOWNLEFT
, #TURNDOWNRIGHT
(B)
#TYPEWRITER
(T) [no longer supported since V3.1]
#WALLPAPERLEFT
(!)
#ROLLLEFT
If you choose #RANDOMEFFECT
, Hollywood will randomly choose any
effect from all possible effects. Very useful when doing slideshows.
When using the 68k version of Hollywood, #RANDOMEFFECT
will not choose
any high-end effects automatically.
Legend:
Async
has been set to True
(see above)DisplayTransitionFX(2, #HSTRIPES32, 10) ; old syntax OR DisplayTransitionFX(2, {Type = #HSTRIPES32, Speed = 10}) ; new syntaxDisplay background picture 2 using the
#HSTRIPES32
effect and speed 10.