 //  for (int i = 0; i < NUM_LEDS; i++){
 //    sparkleAt(i, leds, NUM_LEDS, 0, 0, 25, 350);
 //  }
-//  
+//
 //  for (int i = (NUM_LEDS - 1); i >=0; i--){
 //    sparkleAt(i, leds, NUM_LEDS, 0, 0, 25, 350);
 //  }
 
-  flashyShit(leds, NUM_LEDS, 2000);
+//  flashyShit(leds, NUM_LEDS, 2000);
 //  int randred = random8(50);
 //  int randgreen = random8(50);
 //  int randblue = random8(50);
-  randomIndexFill(leds, NUM_LEDS, 0, 30, 10, 2600);
+//  randomIndexFill(leds, NUM_LEDS, 0, 30, 10, 2600);
 
 //  void sparkleAt(int index, CRGB *leds, int numOfLeds, int red, int green, int blue, int ms){
 
 
-  for (int i = 0; i < NUM_LEDS; i++){
-    sparkleAt(i, leds, NUM_LEDS, 0, 0, 25, 350);
-  }
-
-  for (int i = (NUM_LEDS - 1); i >=0; i--){
-  sparkleAt(i, leds, NUM_LEDS, 0, 0, 25, 350);
-  }
-
+//  for (int i = 0; i < NUM_LEDS; i++){
+//    sparkleAt(i, leds, NUM_LEDS, 0, 0, 25, 350);
+//  }
+
+//  for (int i = (NUM_LEDS - 1); i >=0; i--){
+//    sparkleAt(i, leds, NUM_LEDS, 0, 0, 25, 350);
+//  }
+
+  progressbar(leds, NUM_LEDS, 40, 0, 0, 2000);
 }
 
 void runner(CRGB *leds, int numOfLeds, int red, int green, int blue, int duration) {

void flashyShit(CRGB *leds, int numOfLeds, int ms){
  int middle = numOfLeds / 2;
  int randred,randgreen,randblue;
  
  for (int i = 0; i < numOfLeds / 2; i ++){
    randred = random8(7);
    randgreen = random8(7);
    randblue = random8(7);
    
    leds[middle + i].setRGB(randred,randgreen,randblue);
    leds[middle - i].setRGB(randred,randgreen,randblue);
    FastLED.show();
    delay(ms / (numOfLeds / 2));
    
    leds[middle + i].setRGB(0,0,0);
    leds[middle - i].setRGB(0,0,0);
    FastLED.show();
  }
  
  for (int i = numOfLeds / 2; i >= 0; i --){
    randred = random8(7);
    randgreen = random8(7);
    randblue = random8(7);
    
    leds[middle + i].setRGB(randred,randgreen,randblue);
    leds[middle - i].setRGB(randred,randgreen,randblue);
    FastLED.show();
    delay(ms / (numOfLeds / 2));
    
    leds[middle + i].setRGB(0,0,0);
    leds[middle - i].setRGB(0,0,0);
    FastLED.show();
  
  }
}


    if (ledsOn[randomIndex] == 0){
      leds[randomIndex].setRGB(red, green, blue);
      FastLED.show();

      ledsOn[randomIndex] = 1;
      onCounter ++;

      delay(ms / numOfLeds);
    }

  }

  clearAll(leds, numOfLeds);


}

