Hey guys! :) I'm pretty new to FastLed and Arduino /esp8266 in general.

Hey guys! :slight_smile: I’m pretty new to FastLed and Arduino /esp8266 in general. What I’m trying to do is a gradient “scale projector”. So let’s say BLUE means zero and RED means 25. I have 1metr 2812b strip. What I want to have is number ‘0’(represented by Blue color) still present on the first LED of the strip but the other side of scale will move based on the number Im given. So if 25 is 100% red then if im given number lets say 15 the color at the other end of the strip is kinda purple.

How can I simply achieve this please?

I have my palette set to gradient blue-red but when i use fill_palette and try to use increase of /number/ the gradient scales rapidly(like i get for example 6 gradients in the row. I discivered that its based on math between the number of color entries (i have only two colors, not 15) but also on number of LEDs I have…

So is there a way to say the program something like "i want to fill the strip with this gradient, start at positon 0 but use only 0.7 (70%) of the gradient spectrum?

Sorry for my english if anythig wierd… its my school project and deadline is the next monday so thank you guys for your help - and for the Library!!!

@Ondrej_Pelak - In the void loop of your sketch put:

fill_rainbow(leds, NUM_LEDS,160, 5);
FastLED.show();

This code does what you want on a ring of 24 pixels for a blue to red example. You will need to change the various parameters in fill_rainbow to get the results that you want on your strip. Also, The fill_gradient function might be something that you should consider using.

I would suggest that you look at the very nice tutorial sketch by @Andrew_Tuline at:

to see the different ways to fill and change colors.