A game framework written with osu! in mind.
1// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
2// See the LICENCE file in the repository root for full licence text.
3
4using osu.Framework.Graphics;
5using osu.Framework.Graphics.Shapes;
6using osuTK;
7using osuTK.Graphics;
8
9namespace osu.Framework.Tests.Visual.Containers
10{
11 public class TestSceneFrontToBackTriangle : FrameworkTestScene
12 {
13 public TestSceneFrontToBackTriangle()
14 {
15 Children = new Drawable[]
16 {
17 new Box
18 {
19 RelativeSizeAxes = Axes.Both,
20 Colour = Color4.LightPink
21 },
22 new Triangle
23 {
24 Anchor = Anchor.Centre,
25 Origin = Anchor.Centre,
26 Size = new Vector2(200),
27 Colour = Color4.Red
28 }
29 };
30 }
31 }
32}