using Microsoft.Xna.Framework; namespace MonoGame.Extended.Tweening; /// /// A tween that animates a value using for interpolation. /// public class ColorTween: Tween { internal ColorTween(object target, float duration, float delay, TweenMember member, Color endValue) : base(target, duration, delay, member, endValue) { } /// /// Interpolates the member's color value between the start and end colors for the given progress. /// /// The interpolation progress in the range [0, 1], after easing has been applied. protected override void Interpolate(float n) { Member.Value = Color.Lerp(_startValue, _endValue, n); } }