[handle] = ClearScreen(effect, color[, table])
Note that this function will automatically create a new BGPic filled with the specified color and switch to it.
Starting with Hollywood 5.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:
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
.
Have a look at the documentation of DisplayTransitionFX() to see the list of all transition effects that can be used.
Async
has been set to True
(see above)ClearScreen(#VBLINDS32, $000000, {Speed = 10})The above code clears the screen with color black and the effect
#VBLINDS32
and speed of 10.