1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 14:12:54 +08:00

Use EquilateralTriangle in Triangles.

This commit is contained in:
smoogipooo 2017-03-23 08:34:39 +09:00
parent 7b06f31ddf
commit 9247017c9a

View File

@ -99,15 +99,14 @@ namespace osu.Game.Graphics.Backgrounds
const float size = 100;
return new Triangle
return new EquilateralTriangle
{
Origin = Anchor.TopCentre,
RelativePositionAxes = Axes.Both,
Size = new Vector2(size),
Scale = new Vector2(scale),
EdgeSmoothness = new Vector2(1),
Colour = GetTriangleShade(),
// Scaling height by 0.866 results in equiangular triangles (== 60° and equal side length)
Size = new Vector2(size, 0.866f * size),
Depth = scale,
};
}