ease() public static method

public static ease ( EaseType easeType, Microsoft.Xna.Framework.Color from, Microsoft.Xna.Framework.Color to, float t, float duration ) : Microsoft.Xna.Framework.Color
easeType EaseType
from Microsoft.Xna.Framework.Color
to Microsoft.Xna.Framework.Color
t float
duration float
return Microsoft.Xna.Framework.Color
コード例 #1
0
 protected override void updateValue()
 {
     // special case for non-relative angle lerps so that they take the shortest possible rotation
     if ((_targetType == TransformTargetType.RotationDegrees || _targetType == TransformTargetType.LocalRotationDegrees) && !_isRelative)
     {
         setTweenedValue(Lerps.easeAngle(_easeType, _fromValue, _toValue, _elapsedTime, _duration));
     }
     else
     {
         setTweenedValue(Lerps.ease(_easeType, _fromValue, _toValue, _elapsedTime, _duration));
     }
 }
コード例 #2
0
 protected override void updateValue()
 {
     setTweenedValue(Lerps.ease(_easeType, _fromValue, _toValue, _elapsedTime, _duration));
 }