Beispiel #1
0
        public HueLightShow(ColorGeneratorBase colorGenerator, HueLighting lighting)
        {
            this.ColorGenerator = colorGenerator;
            this.Lighting = lighting;

            // Instead of having a special case for the lightshow loop before the first set of colors has been generated,
            // we provide initial dummy values.
            this.mostRecentGeneratedColors = new GeneratedColors()
            {
                Colors = Enumerable.Range(0, this.ColorGenerator.NumberOfColors).Select(i => new LightColor()).ToArray()
            };
        }
Beispiel #2
0
 internal HueLightingConnection(HueLighting parent, TcpClient client)
 {
     this.lighting = parent;
     this.client = client;
 }