mysimulation/server/TargaImage/Color.cs
Tony Bark 199256785b Port FSO's Server architecture
- FreeSO's older libaries use .NET Standard
- Added TargaImage, needs to be ported
2024-05-06 06:46:27 -04:00

33 lines
770 B
C#

namespace TargaImagePCL
{
public struct Color
{
public static Color Empty = Color.FromArgb(0, 0, 0, 0);
public byte R;
public byte G;
public byte B;
public byte A;
public static Color FromArgb(int a, int r, int g, int b)
{
return new Color()
{
R = (byte)r,
G = (byte)g,
B = (byte)b,
A = (byte)a
};
}
public static Color FromArgb(int r, int g, int b)
{
return new Color()
{
R = (byte)r,
G = (byte)g,
B = (byte)b,
A = (byte)255
};
}
}
}