LINEARBLEND Still a newbie with FastLED - Can someone help me to understand how

LINEARBLEND

Still a newbie with FastLED - Can someone help me to understand how to use this command. I see it used in the ColorPallete example sketch, but I don’t quite understand how it can be used to do a linear blend when changing from one color to another.
For example I have this portion of my sketch which changes 9ea. RGB Strips to complimentary colors OrangeRed and DarkMagenta assigning them randomly among the 9. Right now in my sketch swap positions every 10 seconds randomingly among the 9 flutes (led strips) of my lamp. But instead of them change suddenly, I would like for them to blend from one color to the other:

void Compcolors()
{
if (Swapcolor == 1) {
for ( int i = 0; i < NUM_LEDS; i++) {
RandomHueValue = random(2);
if (RandomHueValue == 1) {
leds[i] = CRGB::OrangeRed;
}
else {
leds[i] = CRGB::DarkMagenta;
}
Swapcolor == 0;
}
}
}

I see in the ColorPalette example sketch where it is used in the following “ColorFromPalette” array of values:

void FillLEDsFromPaletteColors( uint8_t colorIndex)
{
uint8_t brightness = 255;

for( int i = 0; i < NUM_LEDS; i++) {
    leds[i] = ColorFromPalette( currentPalette, colorIndex, brightness, currentBlending);
    colorIndex += 3;
}

}

How does this predefine function work and how can I use LINEARBLEND to do a more simplistic example of simply change from predefine CRGB to another?

Thanks in advance

Take a look at A function for fading one RGB color toward a target RGB color · GitHub

or

Hi @Mark_Biasotti - look at the following post:

https://plus.google.com/+KasperKamperman/posts/jkACVWijSDN

Scroll down to @Mark_Kriegsman ‘s excellent response and read it.

Also, read the article that he references which can now be found at:

http://stsievert.com/blog/2015/04/23/image-sqrt/

Both will give you a better understanding of NOBLEND / LINEARBLEND in the ColorPallete example sketch.