[WPF] La potenza di Random...

Ecco cosa è riuscito a fare il Random...

Random r = new Random();

Brush coloreRandom = new LinearGradientBrush(Color.FromArgb((byte)255, (byte)(r.Next(0, 255)), (byte)(r.Next(0, 255)), (byte)(r.Next(0, 255))), Color.FromArgb((byte)1, (byte)(r.Next(0, 255)), (byte)(r.Next(0, 255)), (byte)(r.Next(0, 255))), 45);

Print | posted on Saturday, June 3, 2006 3:35 PM

Comments have been closed on this topic.