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