Esempio n. 1
0
 public void Update()
 {
     for (int i = 0; i < Length; i++)
     {
         if (Y[i] < 0)
         {
             LaunchUtils.TellPad(X, 7 - Bottom_offset - i, KeyColor.Off);
         }
         else
         {
             LaunchUtils.TellPad(X, Y[i], Color);
         }
     }
 }
Esempio n. 2
0
        public void Flash(int amount, int color_duration, KeyColor color_on, KeyColor color_off)
        {
            for (int i = 0; i < amount; i++)
            {
                for (int j = 0; j < Length; j++)
                {
                    LaunchUtils.TellPad(X, 7 - Bottom_offset - j, color_off);
                }

                Thread.Sleep(color_duration);

                for (int j = 0; j < Length; j++)
                {
                    LaunchUtils.TellPad(X, 7 - Bottom_offset - j, color_on);
                }

                Thread.Sleep(color_duration);
            }

            Update();
        }