1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 09:47:52 +08:00

Improve test scene

This commit is contained in:
Andrei Zavatski 2022-11-30 04:17:37 +03:00
parent 3b13ca1167
commit 745cb0b13a

View File

@ -42,8 +42,7 @@ namespace osu.Game.Tests.Visual.Background
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
RelativeSizeAxes = Axes.Both,
Colour = ColourInfo.GradientVertical(Color4.White, Color4.Red)
RelativeSizeAxes = Axes.Both
}
}
}
@ -60,6 +59,10 @@ namespace osu.Game.Tests.Visual.Background
triangles.Reset(1234);
});
AddSliderStep("Thickness", 0f, 1f, 0.02f, t => triangles.Thickness = t);
AddStep("White colour", () => triangles.Colour = Color4.White);
AddStep("Vertical gradient", () => triangles.Colour = ColourInfo.GradientVertical(Color4.White, Color4.Red));
AddStep("Horizontal gradient", () => triangles.Colour = ColourInfo.GradientHorizontal(Color4.White, Color4.Red));
}
}
}