Use Color4Extensions from Framework and remove redundant Name

This commit is contained in:
Thomas Müller
2017-03-04 19:42:37 +01:00
parent 65699eb39d
commit a14bdf8624
56 changed files with 43 additions and 46 deletions

View File

@ -6,12 +6,6 @@ using OpenTK.Graphics;
namespace osu.Game.Graphics
{
public static class OsuColourExtensions
{
public static Color4 Opacity(this Color4 color, float a) => new Color4(color.R, color.G, color.B, a);
public static Color4 Opacity(this Color4 color, byte a) => new Color4(color.R, color.G, color.B, a / 255f);
}
public class OsuColour
{
public static Color4 Gray(float amt) => new Color4(amt, amt, amt, 1f);