mirror of
https://github.com/ppy/osu.git
synced 2025-02-05 04:13:03 +08:00
Improve test scene to better show colour gradient
This commit is contained in:
parent
ec8532951c
commit
2204af04e4
@ -27,16 +27,24 @@ namespace osu.Game.Tests.Visual.Background
|
|||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Size = new Vector2(500),
|
Size = new Vector2(500, 100),
|
||||||
Masking = true,
|
Masking = true,
|
||||||
CornerRadius = 40,
|
CornerRadius = 40,
|
||||||
Child = triangles = new TrianglesV2
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
new Box
|
||||||
Origin = Anchor.Centre,
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
ColourTop = Color4.Red,
|
Colour = Color4.Red
|
||||||
ColourBottom = Color4.Orange
|
},
|
||||||
|
triangles = new TrianglesV2
|
||||||
|
{
|
||||||
|
Anchor = Anchor.Centre,
|
||||||
|
Origin = Anchor.Centre,
|
||||||
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
ColourTop = Color4.White,
|
||||||
|
ColourBottom = Color4.Red
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user