|
Move objects with animation.
syntax
Animate(
pos
[,speed = 0]
[,easing = "easeOutExpo"]
[,msg]
[,params]
)
Parameters
pos
|
|
Type:
|
Number (array)
|
|
Movement position.
Specify the array as c(left [,top=#N/A#] [,width=#N/A#] [,height=#N/A#]). If #N/A# is specified, there will be no movement.
|
speed
|
|
Type:
|
Number
|
|
The time (in ms) for the animation to complete.
|
easing
|
|
Type:
|
character
|
|
Format: "movement-algorithm" or "movement-mode:movement-algorithm"
Travel modes
0 (or omitted)
|
Smooth animation rendering. Even if the tag value is updated during animation rendering, it is not reflected on the screen.
|
1
|
Smooth animation. If the tag value is updated during animation, it will be reflected on the screen.
|
2
|
Prioritize CPU load. Animations will not be rendered smoothly, but the CPU load will be kept as close as possible to normal.
|
Movement Algorithm
inear/easeInSine/easeOutSine/easeInOutSine/easeInQuad/easeOutQuad/easeInOutQuad/easeInCubic/
easeOutCubic/easeInOutCubic/easeInQuart/easeOutQuart/easeInOutQuart/easeInExpo/easeOutExpo/
easeInOutExpo/easeInCirc/easeOutCirc/easeInOutCirc/easeInBack/easeOutBack/easeInOutBack/
easeInBounce/easeOutBounce/easeInOutBounce
|
msg
|
|
Type:
|
character
|
|
The string that will be passed to msg of the OnAnimateDone event that is called when the animation ends.
|
params
|
|
Type:
|
Characters (array)
|
|
Any other properties you want to animate. Specify them in a property array. For example, c("Angle:90", "Alpha:0.5", "FillColor:#FF0000")
|
Return Value
|
|
Type:
|
Boolean
|
|
FALSE - Failure. TRUE - Success.
|
Explanation
Move objects with animation.
|
Supported
reference
|