Jump to content

API Panel.Position.Morph: Difference between revisions

From Flowcode Help
JonnyW (talk | contribs)
XML Import to change Variable types into Variable Types
JonnyW (talk | contribs)
No edit summary
Line 29: Line 29:


==Detailed description==
==Detailed description==
''<span style="color:red;">No additional information</span>''
This call smoothly interpolates between two objects, storing the result in a third ''Dest'' position.
 
[[File:SIMAPI Panel.Position.Morph.svg|350px]]
 
 
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 [[API Panel.Position.Animate|Animate]] call performs this operation over a fixed time, selecting the ''Step'' from 0 to 1 appropriately then invoking this routine.





Revision as of 22:50, 14 June 2013

<sidebar>API contents</sidebar> Blends positions from two sources to a destination

Class hierarchy

Panel

Position
Morph

Parameters

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


Return value

This call does not return a value


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)

No additional information