Further minor import clean up.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user