2 using System.Collections.Generic;
20 public override void Trigger(Table.TableElementData TableElementData)
22 if (MatrixLayer != null)
25 int V = TableElementData.Value.Limit(0, 255);
26 if (V > 0 && FadeMode ==
FadeModeEnum.OnOff) { V = 255; }
28 MatrixElementType D = GetEffectValue(V);
31 for (
int x = AreaLeft; x <= AreaRight; x++)
33 for (
int y = AreaTop; y <= AreaBottom; y++)
35 MatrixLayer[x, y] = D;
48 protected abstract MatrixElementType GetEffectValue(
int TriggerValue);
The namespace DirectOutput.Cab.Toys contains all toy related classes.
Base class for effects targeting a matrix of toys (e.g. addressable ledstrip)
Base class for effects setting all elements a specified area of a matrix toy to the same specific val...
The namespace DirectOutput.Cab contains all cabinet related classes like the Cabinet class itself...
override void Trigger(Table.TableElementData TableElementData)
Triggers the effect with the given TableElementData.
FadeModeEnum
Defines the fading behaviour.
Namespace for objects dealing with layers
The namespace DirectOutput.General contains classes for general use.