// 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; using osu.Game.Extensions; namespace osu.Game.Graphics.Containers { /// /// A container that adds the ability to shake its contents. /// public partial class ShakeContainer : Container { /// /// The length of a single shake. /// public float ShakeDuration = 80; /// /// Shake the contents of this container. /// /// The maximum length the shake should last. public void Shake(double? maximumLength = null) => this.Shake(ShakeDuration, maximumLength: maximumLength); } }