     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) {


//ms = time of pulse
void pulse(CRGB *leds, int numOfLeds, int red, int green, int blue, int ms){
  int numOfSteps = 20;

  for (int step = 0; step < numOfSteps; step++){

