Ejemplo n.º 1
0
        public void RangeStaticColor()
        {
            string eventName = "RANGESTATICCOLOR";

            _gSHandler = new GSHandler()
            {
                Mode = GSEventMode.Color, Zone = GSDeviceZone.RgbZonedDevice_One
            };

            GSRangeColor range1 = new GSRangeColor()
            {
                Low = 0, High = 33, Color = red
            };
            GSRangeColor range2 = new GSRangeColor()
            {
                Low = 34, High = 66, Color = green
            };
            GSRangeColor range3 = new GSRangeColor()
            {
                Low = 67, High = 100, Color = blue
            };

            _gSHandler.Colors.AddRange(new [] { range1, range2, range3 });

            Prepare(eventName, _gSHandler);
            Loop(eventName);
        }
Ejemplo n.º 2
0
        public void RangeGradientColor()
        {
            string       eventName = "RANGEGRADIENTCOLOR";
            GSRangeColor range1    = new GSRangeColor()
            {
                Low = 0, High = 49, Color = red
            };
            GSRangeColor range2 = new GSRangeColor()
            {
                Low = 50, High = 100, Color = blueGreen
            };

            _gSHandler.Colors.Add(range1);
            _gSHandler.Colors.Add(range2);

            Prepare(eventName, _gSHandler);
            Loop(eventName);
        }