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