Exemple #1
0
        /// <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));
        }
Exemple #2
0
 public static Color RandomAlpha()
 {
     byte[] vals = Randoms.RandomBytes(4);
     return(new Color(vals[0], vals[1], vals[2], vals[3]));
 }
Exemple #3
0
#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));
        }
Exemple #4
0
 public static Color Random()
 {
     byte[] vals = Randoms.RandomBytes(3);
     return(new Color(vals[0], vals[1], vals[2]));
 }