Hi FastLed users, I’m trying to get the following to work but I can’t

Hi FastLed users,

I’m trying to get the following to work but I can’t figure out how. I have tried many possibilities in my sketch but now I’m searching for some help.

I want to have this:

I have a WS2812B strip with 300 pixels.
The standard color of this strip must be orange at 50% brightness. (background)
Inside the orange color there must be three sets of 3 white pixels which are slowly moving from begin to end.

This 3 white pixels must be have a fade in and fade out effect for more smoothness.
0 to 256 and 256 to 0

What kind of code I must use for this?

What work have you done?

Agreed with hex, show your code
But if your having trouble, I guess it’s cause your using the RGB colourset. Change to hsv and then your code is hue 32 (orange) saturation 255 value is 128 for backround, then change the value to 255 by fading for the moving white (255 is white)

But I forget and get confused all the time, so maybe saturation has to be 0.

But play with plugging in numbers and you can get a feel for it.

Yea i find hsv much easier than rgb as well

Thanks for your answers. I’m new to this.

This what I have now:

But it must be more smoothness. And after a 30 orange background leds, this withe leds must repeat.

#include <FastLED.h>
#define NUM_LEDS 10
#define DATA_PIN 4
CRGB leds[NUM_LEDS];

void setup() {
FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS);
}

void loop() {
for (int i = 0; i < NUM_LEDS; i++) {
fill_solid( leds, NUM_LEDS, CHSV(32, 255, 75)); // Filled Background. Orange
FastLED.show();

leds[i] = CHSV(255, 10, 75);

leds[i+1] = CHSV(255, 10, 150); // White
leds[i+2] = CHSV(255, 10, 150); // White

leds[i+3] = CHSV(255, 10, 75);
FastLED.delay(5000);

}

.

http://FastLED.de