/// <summary> Create a randomly colored, randomly transparent pixel. </summary> public static Pixel RandomAlpha() { uint val = (uint)Randoms.RandomInt(-int.MaxValue, int.MaxValue); return(ARGB(val)); }
public static Color RandomAlpha() { byte[] vals = Randoms.RandomBytes(4); return(new Color(vals[0], vals[1], vals[2], vals[3])); }
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member /// <summary> Create a randomly colored, opaque pixel. </summary> public static Pixel Random() { uint val = (uint)Randoms.RandomInt(0, 0x00FFFFFF); return(ARGB(0xFF000000 | val)); }
public static Color Random() { byte[] vals = Randoms.RandomBytes(3); return(new Color(vals[0], vals[1], vals[2])); }