     int tempBlue = blue - (step * (blue / numOfSteps));
 
     for (int i = 0; i < numOfLeds; i++){
-      leds[i].setRGB(tempGreen, tempBlue, tempRed); 
+      leds[i].setRGB(tempRed, tempGreen, tempBlue); 
     }
+    
+    FastLED.show();
+    delay(ms/numOfSteps);
   }
-  FastLED.show();
-  delay(ms/numOfSteps);
-
-}+}

}

void loop() {
  blinking(leds, NUM_LEDS, 0, 10, 0, 3000);
}

void runner(CRGB *leds, int numOfLeds, int red, int green, int blue, int ms) {


void progressbarCentered(CRGB *leds, int numOfLeds, int red, int green, int blue, int ms) {

    int i, center, inv;

    center = numOfLeds / 2;
    
    for(i = center; i < numOfLeds; i++) {
    
        inv = (numOfLeds - i) - 1;
        leds[i].setRGB(red, green, blue);
        leds[inv].setRGB(red, green, blue);
        FastLED.show();
        delay(ms);
    }
    
    for(i = (numOfLeds - 1); i >= center; i--) {
    
        inv = (numOfLeds - i) - 1;
        leds[i].setRGB(0, 0, 0);
        leds[inv].setRGB(0, 0, 0);
        FastLED.show();
        delay(ms);
    }
}

void blinking(CRGB *leds, int numOfLeds, int red, int green, int blue, int ms) {
