2 using System.Collections.Generic;
5 using DirectOutput.Cab.Toys.Layer;
6 using DirectOutput.General.Analog;
8 namespace DirectOutput.FX.MatrixFX
12 private const int RefreshIntervalMs = 30;
25 get {
return _ActiveValue; }
26 set { _ActiveValue = value; }
40 get {
return _InactiveValue; }
41 set { _InactiveValue = value; }
51 protected override AnalogAlpha GetEffectValue(
int TriggerValue)
55 int V = TriggerValue.Limit(0, 255);
56 D.
Value = InactiveValue.Value + (int)((
float)(ActiveValue.Value - InactiveValue.Value) * V / 255).Limit(0, 255);
57 D.
Alpha = InactiveValue.Alpha + (int)((
float)(ActiveValue.Alpha - InactiveValue.Alpha) * V / 255).Limit(0, 255);