Fixed HSL lerp

This commit is contained in:
Apllify
2024-01-17 16:30:26 +01:00
parent 801196c3f0
commit c4e4ecb4d1
+2 -2
View File
@@ -220,7 +220,7 @@ namespace MonoGame.Extended
return new HslColor(
c1.H + t*(h2 - c1.H),
c1.S + t*(c2.S - c1.S),
c1.L + t*(c2.L - c2.L));
c1.L + t*(c2.L - c1.L));
}
public static HslColor FromRgb(Color color)
@@ -267,4 +267,4 @@ namespace MonoGame.Extended
return new HslColor(h, s, l);
}
}
}
}