2 using System.Collections.Generic;
5 using DirectOutput.General.Analog;
6 using DirectOutput.Cab.Toys.Layer;
8 namespace DirectOutput.FX.MatrixFX
15 private const int RefreshIntervalMs = 30;
28 get {
return _ActiveValue; }
29 set { _ActiveValue = value; }
43 get {
return _InactiveValue; }
44 set { _InactiveValue = value; }
53 protected override AnalogAlpha GetEffectValue(
int TriggerValue)
57 int V = TriggerValue.Limit(0, 255);
58 D.
Value = InactiveValue.Value + (int)((
float)(ActiveValue.Value - InactiveValue.Value) * V / 255).Limit(0, 255);
59 D.
Alpha = InactiveValue.Alpha + (int)((
float)(ActiveValue.Alpha - InactiveValue.Alpha) * V / 255).Limit(0, 255);