 }
 
 //ms = time of pulse
-void pulse(CRGB *leds, int numOfLeds, int red, int green, int blue, int ms) {
+void pulse(CRGB *leds, int numOfLeds, CRGB color, int ms) {
   int numOfSteps = 20;
 
   for (int step = 0; step < numOfSteps; step++) {
+
+    int red = color.r;
+    int green = color.g;
+    int blue = color.b;
 
     int tempRed = red - (step * (red / numOfSteps));
     int tempGreen = green - (step * (green / numOfSteps));
     int tempBlue = blue - (step * (blue / numOfSteps));
 
     for (int i = 0; i < numOfLeds; i++) {
-      leds[i].setRGB(tempRed, tempGreen, tempBlue);
+      leds[i] = CRGB(tempRed, tempGreen, tempBlue);
     }
 
     FastLED.show();


  for (i = 0; i < numOfLeds; i++) {

    leds[i].setRGB(0, 0, 0);
  }

  FastLED.show();
  delay(wait);
}

void blinkingParts(CRGB *leds, int numOfLeds, int parts, int red, int green, int blue, int duration) {

  int i, steps, wait;



  for (i = 0; i < numOfLeds; i += steps) {

    leds[i] = color;
  }

  FastLED.show();
