Skip to content

Commit

Permalink
Adjust alpha for rows for better visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
bdach committed Jul 26, 2024
1 parent f1dda4a commit c17cabd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Utils;
using osu.Game.Graphics;
using osu.Game.Graphics.Containers;
using osu.Game.Graphics.UserInterface;
Expand Down Expand Up @@ -74,7 +75,7 @@ protected override void Update()
{
var row = flow[i];

row.Alpha = Math.Max(0, (row.Y + flow.DrawHeight) / flow.DrawHeight);
row.Alpha = Interpolation.ValueAt(Math.Clamp(row.Y + flow.DrawHeight, 0, flow.DrawHeight), 0f, 1f, 0, flow.DrawHeight, Easing.Out);

if (row.Y < -flow.DrawHeight)
{
Expand Down

0 comments on commit c17cabd

Please sign in to comment.