mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Fix MColor cast to Color32
This commit is contained in:
parent
96b1584b62
commit
5033173b66
@ -17,7 +17,7 @@ namespace NewHorizons.Utility
|
|||||||
public int B { get; }
|
public int B { get; }
|
||||||
public int A { get; }
|
public int A { get; }
|
||||||
|
|
||||||
public Color32 ToColor32() => new Color(R, G, B, A);
|
public Color32 ToColor32() => new Color32((byte)R, (byte)G, (byte)B, (byte)A);
|
||||||
|
|
||||||
public Color ToColor() => new Color(R / 255f, G / 255f, B / 255f, A / 255f);
|
public Color ToColor() => new Color(R / 255f, G / 255f, B / 255f, A / 255f);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user