Hi I have a LED stick with 99 LEDs on it and I would

Hi
I have a LED stick with 99 LEDs on it and I would like to draw some simple geometric shaps and use time lapse photography to capture the shapes as I walk in front of the camera. It’s sort of light painting without the image loading as on the Adafruit site.

I am wondering if it is possible to set a range of LEDs to one color, like a block rather than using a for loop to count the LEDs to change. The latter method draws them individually and messes up my photo image.

Here’s a few options:

fill_rainbow(leds, NUM_LEDS, thishue, deltahue); // Use FastLED’s fill_rainbow routine.

fill_solid(leds,NUM_LEDS, 0xff00ff); //A long RGB value
fill_solid(leds, NUM_LEDS, CRGB(50,0,200)); // 8 bit values
fill_solid(leds, NUM_LEDS, CHSV(150,255,200)); // 8 bit values

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

fill_gradient_RGB(leds, startpos, 0x000011, endpos, 0x110000);
fill_gradient_RGB(leds, NUM_LEDS, CRGB(50,0,200), CRGB(80,200,240)); // up to 4 of these

//FORWARD_HUES, BACKWARD_HUES, SHORTEST_HUES, LONGEST_HUES
fill_gradient(leds, startpos, 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

Using a for loop would only set them individually if the http://FastLED.show() was inside the loop. Make sure the show() is called just once after you’ve set all your pixels (using a for loop, Andrew’s good suggestions above, or whatever method you choose).

@marmil opps of course!

@Andrew_Tuline Thanks…