FastLED 3.9.15
Loading...
Searching...
No Matches

◆ blend() [3/4]

CRGB blend ( const CRGB & p1,
const CRGB & p2,
fract8 amountOfP2 )

Computes a new color blended some fraction of the way between two other colors.

Parameters
p1the first color to blend
p2the second color to blend
amountOfP2the fraction of p2 to blend into p1

Definition at line 347 of file colorutils.cpp.

348{
349 CRGB nu(p1);
350 nblend( nu, p2, amountOfP2);
351 return nu;
352}
CRGB & nblend(CRGB &existing, const CRGB &overlay, fract8 amountOfOverlay)
Destructively modifies one color, blending in a given fraction of an overlay color.
Representation of an RGB pixel (Red, Green, Blue)
Definition crgb.h:54

References nblend().

Referenced by blend(), blend(), ColorFromPalette(), ColorFromPalette(), ColorFromPalette(), ColorFromPalette(), ColorFromPalette(), ColorFromPalette(), ColorFromPaletteExtended(), ColorFromPaletteExtended(), ColorFromPaletteExtended(), fl::TwinkleFox::drawTwinkleFox(), drawTwinkles(), fill_2dnoise16(), fill_2dnoise8(), fill_raw_2dnoise16into8(), and MyColorFromPaletteExtended().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: