Add ColorTween

This commit is contained in:
Gandifil
2024-01-22 19:32:13 +03:00
parent 60d2fdfd1e
commit f961461a67
@@ -0,0 +1,15 @@
using Microsoft.Xna.Framework;
namespace MonoGame.Extended.Tweening;
public class ColorTween: Tween<Color>
{
internal ColorTween(object target, float duration, float delay, TweenMember<Color> member, Color endValue) : base(target, duration, delay, member, endValue)
{
}
protected override void Interpolate(float n)
{
Member.Value = Color.Lerp(_startValue, _endValue, n);
}
}