Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Random rand = new Random();
- public Pen pioro;
- public List<kulka> kulki = new List<kulka>();
- public Form1()
- {
- InitializeComponent();
- }
- public Color getrandkolor()
- {
- return Color.FromArgb((byte)rand.Next(0, 255), (byte)rand.Next(0, 255), (byte)rand.Next(0, 255));
- }
- public Pen randompen()
- {
- return pioro = new Pen(getrandkolor(),5);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement