Difference between revisions of "API Panel.Position.Animate"

From Flowcode Help
Jump to navigationJump to search
(XML import API auto-gen)
 
(14 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<sidebar>API contents</sidebar>
+
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
Blends positions from two sources to a destination over time
+
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Animate'''
 +
|-
 +
| colspan="2" | Blends positions from two sources to a destination over time&nbsp;
 +
|-
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-h32-icon.png]] - HANDLE
 +
| width="90%" | Dest
 +
|-
 +
| colspan="2" | The position or component to update&nbsp;
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-h32-icon.png]] - HANDLE
 +
| width="90%" | Start
 +
|-
 +
| colspan="2" | The initial position of the animation&nbsp;
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-h32-icon.png]] - HANDLE
 +
| width="90%" | End
 +
|-
 +
| colspan="2" | The final position of the animation&nbsp;
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT
 +
| width="90%" | Millisecs
 +
|-
 +
| colspan="2" | Time to take to perform the animation&nbsp;
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - NONE
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
  
===Parameters===
+
==Detailed description==
''[[Variable types|HANDLE]] Dest''
+
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.
:The position or component to update
 
  
''[[Variable types|HANDLE]] Start''
+
[[File:SIMAPI Panel.Position.Morph.svg|350px|Interpolation from 0 to 1]]
:The initial position of the animation
 
  
''[[Variable types|HANDLE]] End''
 
:The final position of the animation
 
  
''[[Variable types|UINT]] Millisecs''
+
The closely related [[API Panel.Position.Morph|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.
:Time to take to perform the animation
 
:''The default value for this parameter is: '''''1000'''
 
  
===Return value===
 
''This call does not return a value''
 
  
===Detailed description===
+
Animations can be stopped using [[API Panel.Position.StopAnimate|StopAnimate]]
''No additional information''
 
  
===Examples===
+
 
====Calling in a calculation====
+
==Examples==
* Add to a calculation icon: ::Panel.Position.Animate(dest, start, end, millisecs)
+
===Calling in a calculation===
 +
* Add to a calculation icon: <pre class="brush:[cpp]">::Panel.Position.Animate(dest, start, end, millisecs)</pre>

Latest revision as of 11:54, 16 January 2023

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)