ease() 공개 정적인 메소드

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
리턴 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));
 }