mirror of
https://github.com/ppy/osu
synced 2024-12-13 18:37:04 +00:00
Directly fade to gray instead of computing the color values
This commit is contained in:
parent
877c775e35
commit
6629f8706a
@ -29,7 +29,6 @@ using osu.Game.Rulesets.Scoring;
|
||||
using osu.Game.Rulesets.UI;
|
||||
using osu.Game.Skinning;
|
||||
using osuTK;
|
||||
using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Rulesets.Osu.Mods
|
||||
{
|
||||
@ -146,8 +145,7 @@ namespace osu.Game.Rulesets.Osu.Mods
|
||||
|
||||
var colour = drawable.Colour;
|
||||
|
||||
var avgColour = colour.AverageColour.Linear;
|
||||
drawable.FadeColour(new Color4(avgColour.R * 0.45f, avgColour.G * 0.45f, avgColour.B * 0.45f, avgColour.A))
|
||||
drawable.FadeColour(OsuColour.Gray(0.45f))
|
||||
.Then().Delay(h.TimePreempt - controlPointInfo.TimingPointAt(h.StartTime).BeatLength - undim_duration)
|
||||
.FadeColour(colour, undim_duration);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user