2 using System.Collections.Generic;
28 get {
return _ActiveValue; }
29 set { _ActiveValue = value; }
43 get {
return _InactiveValue; }
44 set { _InactiveValue = value; }
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);
The namespace DirectOutput.Cab.Toys contains all toy related classes.
int Value
The analog value (0-255).
Object containing a analog value (0-255) and a alpha value (0-255).
int Alpha
The alpha value (0-255).
Base class for effects setting all elements a specified area of a matrix toy to the same specific val...
override AnalogAlpha GetEffectValue(int TriggerValue)
Gets the effect value by mixinging Active and InactiveValue based on the TriggerValue.
The namespace DirectOutput.Cab contains all cabinet related classes like the Cabinet class itself...
Sets the spefied area of matrix to the specified values depending on the trigger value.
Namespace for objects dealing with layers
The namespace DirectOutput.General contains classes for general use.