2 using System.Collections.Generic;
15 private const int RefreshIntervalMs = 30;
28 get {
return _ActiveColor; }
29 set { _ActiveColor = value; }
43 get {
return _InactiveColor; }
44 set { _InactiveColor = value; }
57 int V = TriggerValue.Limit(0, 255);
58 D.
Red = InactiveColor.Red + (int)((
float)(ActiveColor.Red - InactiveColor.Red) * V / 255).Limit(0, 255);
59 D.
Green = InactiveColor.Green + (int)((
float)(ActiveColor.Green - InactiveColor.Green) * V / 255).Limit(0, 255);
60 D.
Blue = InactiveColor.Blue + (int)((
float)(ActiveColor.Blue - InactiveColor.Blue) * V / 255).Limit(0, 255);
61 D.
Alpha = InactiveColor.Alpha + (int)((
float)(ActiveColor.Alpha - InactiveColor.Alpha) * V / 255).Limit(0, 255);
Does create random flickering with a defineable density, durations and color within the spefied area ...
This class stores information on colors used for toys and effects (e.g. RGBLed).
The namespace DirectOutput.Cab.Toys contains all toy related classes.
override RGBAColor GetEffectValue(int TriggerValue)
Gets the effect color by mixinging Active and InactiveColor based on the TriggerValue.
int Red
Brightness for Red.
int Green
Brightness for Green.
The namespace DirectOutput.Cab contains all cabinet related classes like the Cabinet class itself...
int Blue
Brightness for Blue.
int Alpha
Alpha value for the color.
Namespace for objects dealing with layers
Does create random flickering with a defineable density, durations and value within the spefied area ...
The namespace DirectOutput.General contains classes for general use.