示例#1
0
 public void RenderSync()
 {
     for (int i = 0; i < colors.Count - 1; i++)
     {
         ColorBlender cb1 = new ColorManager.ColorBlender(colors[i], colors[i + 1]);
         for (int w = 0; w <= 100; w++)
         {
             System.Threading.Thread.Sleep(time / 100);
             Chroma.Instance.Keyboard.SetAll(cb1.GetColor2(w));
         }
     }
 }
示例#2
0
        public void DrawHeat(int healthperc, bool CompleteColor)
        {
            ColorBlender cb = new ColorBlender(System.Drawing.Color.Red, System.Drawing.Color.Green);

            cb.bluecomplete  = CompleteColor;
            cb.CompleteColor = System.Drawing.Color.Aqua;
            Color c = cb.GetColor2(healthperc);

            try
            {
                for (int i = 1; i < 22; i++)
                {
                    for (int r = 2; r < 5; r++)
                    {
                        Chroma.Instance.Keyboard[r, i] = c;
                    }
                }
            }
            catch (Exception) { }
        }
示例#3
0
        public void DrawHealth(int healthperc, bool CompleteColor)
        {
            ColorBlender cb = new ColorBlender(System.Drawing.Color.Red, System.Drawing.Color.Green);

            cb.bluecomplete  = CompleteColor;
            cb.CompleteColor = System.Drawing.Color.Aqua;
            Color c = cb.GetColor2(healthperc);

            try
            {
                for (int i = 1; i < (int)(18 * healthperc / 100); i++)
                {
                    Chroma.Instance.Keyboard[0, i] = c;
                }
                for (int i = (int)(18 * healthperc / 100); i < 18; i++)
                {
                    Chroma.Instance.Keyboard[0, i] = Color.Black;
                }
            }
            catch (Exception) { }
        }