mirror of
https://github.com/ppy/osu
synced 2025-01-23 22:33:05 +00:00
Update difficulty colour spectrum
This commit is contained in:
parent
936ec5fe8f
commit
9000d19c9e
@ -52,15 +52,18 @@ namespace osu.Game.Graphics
|
|||||||
|
|
||||||
public Color4 ForStarDifficulty(double starDifficulty) => ColourUtils.SampleFromLinearGradient(new[]
|
public Color4 ForStarDifficulty(double starDifficulty) => ColourUtils.SampleFromLinearGradient(new[]
|
||||||
{
|
{
|
||||||
(1.5f, Color4Extensions.FromHex("4fc0ff")),
|
(0.1f, Color4Extensions.FromHex("aaaaaa")),
|
||||||
|
(0.1f, Color4Extensions.FromHex("4290fb")),
|
||||||
|
(1.25f, Color4Extensions.FromHex("4fc0ff")),
|
||||||
(2.0f, Color4Extensions.FromHex("4fffd5")),
|
(2.0f, Color4Extensions.FromHex("4fffd5")),
|
||||||
(2.5f, Color4Extensions.FromHex("7cff4f")),
|
(2.5f, Color4Extensions.FromHex("7cff4f")),
|
||||||
(3.25f, Color4Extensions.FromHex("f6f05c")),
|
(3.3f, Color4Extensions.FromHex("f6f05c")),
|
||||||
(4.5f, Color4Extensions.FromHex("ff8068")),
|
(4.2f, Color4Extensions.FromHex("ff8068")),
|
||||||
(6.0f, Color4Extensions.FromHex("ff3c71")),
|
(4.9f, Color4Extensions.FromHex("ff4e6f")),
|
||||||
(7.0f, Color4Extensions.FromHex("6563de")),
|
(5.8f, Color4Extensions.FromHex("c645b8")),
|
||||||
(8.0f, Color4Extensions.FromHex("18158e")),
|
(6.7f, Color4Extensions.FromHex("6563de")),
|
||||||
(8.0f, Color4.Black),
|
(7.7f, Color4Extensions.FromHex("18158e")),
|
||||||
|
(9.0f, Color4.Black),
|
||||||
}, (float)Math.Round(starDifficulty, 2, MidpointRounding.AwayFromZero));
|
}, (float)Math.Round(starDifficulty, 2, MidpointRounding.AwayFromZero));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user