API Panel.Position.Animate

From Flowcode Help
Jump to navigationJump to search
Fc9-comp-macro.png Animate
Blends positions from two sources to a destination over time 
Fc9-h32-icon.png - HANDLE Dest
The position or component to update 
Fc9-h32-icon.png - HANDLE Start
The initial position of the animation 
Fc9-h32-icon.png - HANDLE End
The final position of the animation 
Fc9-u16-icon.png - UINT Millisecs
Time to take to perform the animation 
Fc9-void-icon.png - NONE Return


Detailed description

This call animates between two objects, storing the result in a third Dest position. It performs the operation in the background over a specified time.

Interpolation from 0 to 1


The closely related Morph call performs this operation allowing for any point on the scale to be stepped to, but it must be called manually by the user to perform an animation.


Animations can be stopped using StopAnimate


Examples

Calling in a calculation

  • Add to a calculation icon:
    ::Panel.Position.Animate(dest, start, end, millisecs)