Esempio n. 1
0
        public Vector2 GetCurrentValue()
        {
            Vector2 currentValue;

            currentValue.X = AeMath.GetTweenValue(_source.X, _target.X, _interpolator.CurrentLinearValue);
            currentValue.Y = AeMath.GetTweenValue(_source.Y, _target.Y, _interpolator.CurrentLinearValue);
            return(currentValue);
        }
Esempio n. 2
0
 public override void Update(GameTime gameTime)
 {
     base.Update(gameTime);
     if (_colorInterpolator.IsRunning)
     {
         float currentInterpolatorValue = _colorInterpolator.CurrentValue;
         _currentColor.R = AeMath.GetTweenValue(_baseColor.R, _targetColor.R, currentInterpolatorValue);
         _currentColor.G = AeMath.GetTweenValue(_baseColor.G, _targetColor.G, currentInterpolatorValue);
         _currentColor.B = AeMath.GetTweenValue(_baseColor.B, _targetColor.B, currentInterpolatorValue);
     }
 }