How does one do a fill_* on a range? For example,

How does one do a fill_* on a range? For example, let say I had a strip of 16 LEDs and and wanted to fill [3…6]. Do I make a shallow copy of initialized array? Am I missing some basic understanding of FastLED?

Thanks!

Did you try:

fill_solid(leds,3,0x00ff00); // 3 green
fill_solid(leds+3,3,0xff0000); // then 3 red

You could even do gradients in a similar manner:

//FORWARD_HUES, BACKWARD_HUES, SHORTEST_HUES, LONGEST_HUES
fill_gradient(leds+3, 5, CHSV(50, 255,255) , endpos, CHSV(150,255,255), SHORTEST_HUES);
fill_gradient(leds, NUM_LEDS, CHSV(50, 255,255), CHSV(100,255,255), LONGEST_HUES); // up to 4 of these

That’s exactly what I was looking for! Is there a good doc on the use of operators? I was poking around the doxygen but couldn’t find details.

I just go through the source code and hack at it.

You can try this as well: https://github.com/FastLED/FastLED/wiki/RGBSet-Reference
But you better get the latest version from GitHub