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

◆ blend()

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

Definition at line 50 of file crgb.cpp.

50 {
51 return CRGB(
52 blend8(p1.r, p2.r, amountOfP2),
53 blend8(p1.g, p2.g, amountOfP2),
54 blend8(p1.b, p2.b, amountOfP2)
55 );
56}
LIB8STATIC uint8_t blend8(uint8_t a, uint8_t b, uint8_t amountOfB)
Blend a variable proportion (0-255) of one byte to another.
Definition math8.h:667
FASTLED_FORCE_INLINE CRGB()=default
Default constructor.

References CRGB(), and blend8().

Referenced by blendAlphaMaxChannel(), fl::FxCompositor::draw(), and fl::Frame::interpolate().

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