mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 14:27:31 +08:00
Improve test scene
This commit is contained in:
parent
3b13ca1167
commit
745cb0b13a
@ -42,8 +42,7 @@ namespace osu.Game.Tests.Visual.Background
|
|||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both
|
||||||
Colour = ColourInfo.GradientVertical(Color4.White, Color4.Red)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -60,6 +59,10 @@ namespace osu.Game.Tests.Visual.Background
|
|||||||
triangles.Reset(1234);
|
triangles.Reset(1234);
|
||||||
});
|
});
|
||||||
AddSliderStep("Thickness", 0f, 1f, 0.02f, t => triangles.Thickness = t);
|
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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user