blob: 8b58a8ea13f8684c903b12e2e935975fa2878245 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
using MonoGame.Extended;
namespace MonoGame.Extended.Particles.Modifiers.Interpolators
{
public class HueInterpolator : Interpolator<float>
{
public override unsafe void Update(float amount, Particle* particle)
{
particle->Color = new HslColor((EndValue - StartValue) * amount + StartValue, particle->Color.S, particle->Color.L);
}
}
}
|