public SimpleStrobeAnimation(int Light_Count, StrobeMode DesiredStrobeMode) : base(Light_Count) { InitBaseSystem (Light_Count, DesiredStrobeMode); }
public SimpleStrobeAnimation(List<LED> PreviouslyShownFrame, StrobeMode DesiredStrobeMode) : base(PreviouslyShownFrame) { InitBaseSystem (PreviouslyShownFrame.Count, DesiredStrobeMode); }
private void InitBaseSystem(int Light_Count, StrobeMode DesiredStrobeMode) { for (int i = 0; i < Light_Count; i++) { CurrentFrame [i].R = 0; CurrentFrame [i].G = 0; CurrentFrame [i].B = 0; CurrentFrame [i].Brightness = 0; } RandomGenerator = new Random (); SelectedStrobeMode = DesiredStrobeMode; }