BRRP_BRRP_BRRP_Tracker.Main.NewColor C# (CSharp) Method

NewColor() public method

public NewColor ( ) : void
return void
        public void NewColor()
        {
            // Generate a random RGB
            Random random = new Random();
            int rgbR = random.Next(20, 256);
            int rgbG = random.Next(20, 256);
            int rgbB = random.Next(20, 256);
            Color randColor = Color.FromArgb((rgbR - 20), (rgbG - 20), (rgbB - 20));

            // Set the colors
            this.BackColor = randColor;
            PlayButton.ForeColor = randColor;

            if (!lColors)
            {
                LabelColors();
                lColors = true;
            }
        }