Is there a way to address numerous leds at once by doing something like

Is there a way to address numerous leds at once by doing something like leds[0,1,7,8] = CRGB::Red; where the strip is 9 leds long and I am wanting to change leds 0, 1, 7 and 8 to red? Right now when I try the foregoing, it only lights up the last led in the array.

That’s how the comma operator works in c, the “value” of the expression is the rightmost expression in the list.

leds[0] = leds[3] = leds[8] = CRGB::Blue;

Is what you need to use.

ah, thank you =) last-minute changes to a burning man jacket… hoping I can finish it in the next few hours. Daniel, you da man - no telling how many people will be wandering around the playa over the next few days with an arduino running FastLED!

Is there any easy way to specify a range of LEDs, say LEDs 1-9 without a for loop?