Jump to content

API Panel.Position.Morph: Difference between revisions

From Flowcode Help
No edit summary
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable""
Line 1: Line 1:
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]

Revision as of 14:07, 13 July 2026

Morph
Blends positions from two sources to a destination 
- HANDLE Dest
The position or component to update 
- HANDLE Start
The initial position at Step=0 
- HANDLE End
The final position at Step=1 
- FLOAT Step
A value from 0 to 1 for the position between Start and End 
- BOOL CurveArcs
True to curve movement if rotation is applied, false for linear movement 
- NONE Return


Detailed description

This call smoothly interpolates between two objects, storing the result in a third Dest position.


The Step may be any value and is not bounded by Flowcode, but typically lies within the range of 0 to 1. A value of 0 represents the position of Start and 1 represents End.


The Animate call performs this operation over a fixed time, selecting the Step from 0 to 1 appropriately then invoking this routine.


Examples

Calling in a calculation

  • Add to a calculation icon:
    ::Panel.Position.Morph(dest, start, end, step, false)