Exemple #1
0
 public static Color RandomColorWithAlpha()
 {
     return(Color.FromArgb(RNG.Next(255), RNG.Next(255), RNG.Next(255), RNG.Next(255)));
 }
Exemple #2
0
 public static int RandomColorToInt()
 {
     return(Color.FromArgb(RNG.Next(255), RNG.Next(255), RNG.Next(255), RNG.Next(255)).ToArgb());
 }
Exemple #3
0
 public static Color RandomColor()
 {
     return(Color.FromArgb(255, RNG.Next(255), RNG.Next(255), RNG.Next(255)));
 }