[handle] = MoveBrush(id, xa, ya, xb, yb[, table])
id
softly from the
location specified by xa
,ya
to the location specified by xb
,yb
.
Further parameters can be specified in the optional table argument. The following parameters are recognized:
Speed:
#SLOWSPEED
, #NORMALSPEED
or
#FASTSPEED
).
FX:
#BOUNCE:
#DAMPED:
#SMOOTHOUT:
#SINE:
#BIGSINE:
#LOWERCURVE:
#UPPERCURVE:
Effects marked with an asterisk are only possible with horizontal
moves, which means that ya
and yb
coordinates must be equal!
Async:
True
here MoveBrush()
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.
Async
has been set to True
(see above)MoveBrush(1, 100, 50, 0, 50, {Speed = 5})Moves the brush from 100:50 to 0:50 with speed 5.
MoveBrush(1, #RIGHTOUT, #BOTTOM, #LEFTOUT, #BOTTOM, {Speed = #NORMALSPEED})Moves the brush from the outer right position to the outer left position with a normal speed.