// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Graphics.Containers; namespace osu.Framework.Graphics.Effects { /// /// An effect applied around the edge of the target drawable. /// public class EdgeEffect : IEffect { /// /// The parameters of the edge effect. /// public EdgeEffectParameters Parameters; /// /// Determines how large a radius is masked away around the corners. Default is 0. /// public float CornerRadius; public Container ApplyTo(Drawable drawable) => new Container { Masking = true, EdgeEffect = Parameters, CornerRadius = CornerRadius, }.Wrap(drawable); } }