CrossUI.Color.FromBytes C# (CSharp) Method

FromBytes() public static method

public static FromBytes ( byte r, byte g, byte b, byte a ) : Color
r byte
g byte
b byte
a byte
return Color
        public static Color FromBytes(byte r, byte g, byte b, byte a)
        {
            return new Color(r/255d, g/255d, b/255d, a/255d);
        }