private void InitFireworksBuffer() { if (_fireworkBursts == null) { _fireworkBursts = new List<RgbFireworks>(MaxFlakes); for (int burstNum = 0; burstNum < MaxFlakes; burstNum++) { RgbFireworks firework = new RgbFireworks(); _fireworkBursts.Add(firework); } } }
private void InitFireworksBuffer() { _fireworkBursts = null; _fireworkBursts = new List<RgbFireworks>(_maxFlakes); for (int burstNum = 0; burstNum < _maxFlakes; burstNum++) { RgbFireworks firework = new RgbFireworks(); firework.Active = false; firework.StartPeriod = -1; //Ensures there is no false firework at pixel 0,0 on Frame 0 _fireworkBursts.Add(firework); } }