mirror of
https://github.com/ppy/osu.git
synced 2024-12-18 23:02:55 +08:00
21 lines
658 B
C#
21 lines
658 B
C#
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|||
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|||
|
|
|||
|
using osu.Framework.Graphics;
|
|||
|
using osu.Framework.Graphics.Transforms;
|
|||
|
using osu.Game.Graphics.Backgrounds;
|
|||
|
using OpenTK;
|
|||
|
|
|||
|
namespace osu.Game.Screens
|
|||
|
{
|
|||
|
public abstract class BlurrableBackgroundScreen : BackgroundScreen
|
|||
|
{
|
|||
|
protected Background Background;
|
|||
|
|
|||
|
protected Vector2 BlurTarget;
|
|||
|
|
|||
|
public TransformSequence<Background> BlurTo(Vector2 sigma, double duration, Easing easing = Easing.None)
|
|||
|
=> Background?.BlurTo(BlurTarget = sigma, duration, easing);
|
|||
|
}
|
|||
|
}
|