Further minor import clean up.

This commit is contained in:
2019-11-24 16:20:26 -05:00
parent 14ee906edd
commit 29daabdaf6
4 changed files with 16 additions and 16 deletions

View File

@@ -3,7 +3,7 @@ namespace RecrownedAthenaeum.Types
{
public struct Color
{
public byte r, g, b;
public byte r, g, b, a;
public float R {
set {
r = (byte)Math.Min(Math.Round(Byte.MaxValue * value), Byte.MaxValue);
@@ -28,5 +28,13 @@ namespace RecrownedAthenaeum.Types
return g / (float)(byte.MaxValue);
}
}
public float A {
set {
a = (byte)Math.Min(Math.Round(Byte.MaxValue * value), Byte.MaxValue);
}
get {
return a / (float)(byte.MaxValue);
}
}
}
}