Advertisement
Skylighty

Untitled

Jun 12th, 2019
491
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.47 KB | None | 0 0
  1. public Random rand = new Random();
  2.         public Pen pioro;
  3.         public List<kulka> kulki = new List<kulka>();
  4.         public Form1()
  5.         {
  6.             InitializeComponent();
  7.         }
  8.  
  9.         public Color getrandkolor()
  10.         {
  11.             return Color.FromArgb((byte)rand.Next(0, 255), (byte)rand.Next(0, 255), (byte)rand.Next(0, 255));
  12.         }
  13.  
  14.         public Pen randompen()
  15.         {
  16.             return pioro = new Pen(getrandkolor(),5);
  17.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement