mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-15 15:09:29 +00:00
Add ColorTween
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user