Merge pull request #834 from Apllify/fix-hsl-lerp

Fixed HSL Lerp function
This commit is contained in:
Max Kopjev
2024-04-07 21:19:19 +03:00
committed by GitHub
+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);
}
}
}
}