mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-24 12:06:37 +00:00
16 lines
410 B
C#
16 lines
410 B
C#
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);
|
|
}
|
|
}
|