2 using System.Xml.Serialization;
3 using DirectOutput.Cab.Out;
4 using DirectOutput.Cab.Toys.Layer;
5 using DirectOutput.Cab.Color;
7 namespace DirectOutput.Cab.Toys.Basic
34 _OutputRed = Cabinet.
Outputs[OutputNameRed];
42 _OutputGreen = Cabinet.
Outputs[OutputNameGreen];
50 _OutputBlue = Cabinet.
Outputs[OutputNameBlue];
65 public override void Finish()
82 public string OutputNameRed {
get;
set; }
90 public string OutputNameGreen {
get;
set; }
98 public string OutputNameBlue {
get;
set; }
101 private int _BrightnessRed;
109 get {
return _BrightnessRed; }
112 _BrightnessRed = value.Limit(0, 255);
113 if (_OutputRed != null)
115 _OutputRed.
Value = (byte)_BrightnessRed;
119 private int _BrightnessGreen;
127 get {
return _BrightnessGreen; }
130 _BrightnessGreen = value.Limit(0, 255);
131 if (_OutputGreen != null)
133 _OutputGreen.Value = (byte)_BrightnessGreen;
137 private int _BrightnessBlue;
145 get {
return _BrightnessBlue; }
148 _BrightnessBlue = value.Limit(0, 255);
149 if (_OutputBlue != null)
151 _OutputBlue.Value = (byte)_BrightnessBlue;
163 public override void Reset()
177 public void SetColor(
int Red,
int Green,
int Blue)
210 public void SetColor(
string Color)
212 if (_Cabinet.Colors.Contains(Color))
214 SetColor(_Cabinet.Colors[Color]);