2 using System.Collections.Generic;
6 using DirectOutput.Cab.Toys.Layer;
7 using DirectOutput.General.Analog;
9 namespace DirectOutput.FX.MatrixFX
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);