Пример #1
0
        static void UpdateHeadsetStand(CorsairHeadsetStandRGBDevice headsetStand, Color c1, Color c2, Color c3, Color c4)
        {
            do
            {
                c1 = backIOColor;
                c2 = headerTwoColor;
                c3 = pchColor;
                c4 = headerOneColor;

                headsetStand.ElementAt(0).Color = ColorUtils.colorMixer(ColorUtils.colorMixer(c1, c3), ColorUtils.colorMixer(c2, c4));
                headsetStand.ElementAt(1).Color = ColorUtils.colorMixer(c4, c1);
                headsetStand.ElementAt(2).Color = c4;
                headsetStand.ElementAt(3).Color = ColorUtils.colorMixer(c3, c4);
                headsetStand.ElementAt(4).Color = c3;
                headsetStand.ElementAt(5).Color = ColorUtils.colorMixer(c2, c3);
                headsetStand.ElementAt(6).Color = c2;
                headsetStand.ElementAt(7).Color = ColorUtils.colorMixer(c1, c2);
                headsetStand.ElementAt(8).Color = c1;

                System.Threading.Thread.Sleep(15);
            } while (running);
        }