Change rainbow effect to single colour

the code here has a rainbow effect.
how do I make single color like RED?

#include “FastLED.h”
#define NUM_LEDS 50
CRGB leds[NUM_LEDS];
#define PIN 6

void setup()
{
FastLED.addLeds<WS2811, PIN, GRB>(leds, NUM_LEDS).setCorrection( TypicalLEDStrip );
}

// *** REPLACE FROM HERE ***
void loop() {
colorWipe(0x00,0xff,0x00, 50);
colorWipe(0x00,0x00,0xff, 50);
colorWipe(0xff,0x00,0x00, 50);
colorWipe(0x0f,0xff,0x0f, 50);
colorWipe(0,255,50, 50);
colorWipe(0xff,0x24,0xf8, 50);
colorWipe(0xe9,0xff,0x21, 50);
colorWipe(0,255,20, 50);
colorWipe(0x1f,0x0f,0xff, 50);
colorWipe(0x12,0xff,0x88, 50);
colorWipe(0xff,0xff,0xff, 50);
}

void colorWipe(byte red, byte green, byte blue, int SpeedDelay) {
for(int i = 0; i < (NUM_LEDS / 2) + 1; i++) {
setPixel(i, red, green, blue);
setPixel(NUM_LEDS - i, red, green, blue);
showStrip();
delay(SpeedDelay);
}
}
// *** REPLACE TO HERE ***

void showStrip() {
#ifdef ADAFRUIT_NEOPIXEL_H
// NeoPixel
strip.show();
#endif
#ifndef ADAFRUIT_NEOPIXEL_H
// FastLED
FastLED.show();
#endif
}

void setPixel(int Pixel, byte red, byte green, byte blue) {
#ifdef ADAFRUIT_NEOPIXEL_H
// NeoPixel
strip.setPixelColor(Pixel, strip.Color(red, green, blue));
#endif
#ifndef ADAFRUIT_NEOPIXEL_H
// FastLED
leds[Pixel].r = red;
leds[Pixel].g = green;
leds[Pixel].b = blue;
#endif
}

void setAll(byte red, byte green, byte blue) {
for(int i = 0; i < NUM_LEDS; i++ ) {
setPixel(i, red, green, blue);
}
showStrip();
}

Split from an old topic

DO NOT hijack old threads

Hi,
Welcome to the forum.

Please read the post at the start of any forum , entitled "How to use this Forum".
OR
http://forum.arduino.cc/index.php/topic,148850.0.html.
Then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Thanks.. Tom.. :slight_smile:

Stop posting the same question all over the forum

I have deleted the one that you posted at 20:59