 
 
 } //end_main_loop
-

  }

  EVERY_N_MILLISECONDS(500) {
    static uint8_t offset;
    static uint8_t shift;
    
    //hue = ((255 / repeatEvery) * offset) + shift;  // Change the hue for each pixel set.
    hue = (20 * offset) + shift;  // Change the hue for each pixel set.
    
    for (uint16_t x = 0; x < numberOfRepeats + 1; x++) {
      static uint16_t i;
      i = (repeatEvery * (x - 1)) + repeatEvery + offset;  // The pixel number to draw
      if (i < NUM_LEDS) {  // Only draw pixel numbers within NUM_LEDS
        leds[i] = CHSV(hue,180,255);
      }
    }

    offset++;
    if (offset == repeatEvery) {
      offset = 0;
      shift = shift + random8(55,77);
    }

  } //end_every_n

//
// Marc Miller, Nov 2015
//              May 2020 - replaced all delays with EVERY_N
//              June 2021 - renamed some variables
//***************************************************************

#include "FastLED.h"
