2 using System.Collections.Generic;
5 using DirectOutput.Cab.Out;
6 using DirectOutput.Cab.Color;
8 namespace DirectOutput.Cab.Toys.Layer
28 [System.Xml.Serialization.XmlIgnore]
43 public string OutputNameRed {
get;
set; }
50 public string OutputNameGreen {
get;
set; }
57 public string OutputNameBlue {
get;
set; }
78 _OutputRed = Cabinet.
Outputs[OutputNameRed];
86 _OutputGreen = Cabinet.
Outputs[OutputNameGreen];
94 _OutputBlue = Cabinet.
Outputs[OutputNameBlue];
109 public override void Finish()
125 public override void UpdateOutputs()
127 RGBColor RGB = Layers.GetResultingColor();
128 if (_OutputRed != null)
130 _OutputRed.Value = (byte)RGB.
Red;
132 if (_OutputGreen != null)
134 _OutputGreen.Value = (byte)RGB.
Green;
136 if (_OutputBlue != null)
138 _OutputBlue.Value = (byte)RGB.
Blue;
146 public override void Reset()
149 _OutputRed.Value = 0;
150 _OutputGreen.Value = 0;
151 _OutputBlue.Value = 0;