Delegate ScaleFunc
Takes in progress which is the percentage of the tween complete and returns the interpolation value that is fed into the lerp function for the tween.
Namespace: Aximo.Engine
Assembly: AxEngine.dll
Syntax
public delegate float ScaleFunc(float position);
Parameters
Type | Name | Description |
---|---|---|
System.Single | position | The percentage of the tween complete in the range [0, 1]. |
Returns
Type | Description |
---|---|
System.Single | The scale value used to lerp between the tween's start and end values |
Remarks
Scale functions are used to define how the tween should occur. Examples would be linear, easing in quadratic, or easing out circular. You can implement your own scale function or use one of the many defined in the ScaleFuncs static class.