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

◆ blend()

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

Definition at line 55 of file crgb.cpp.

55 {
56 return CRGB(blend8(p1.r, p2.r, amountOfP2), blend8(p1.g, p2.g, amountOfP2),
57 blend8(p1.b, p2.b, amountOfP2));
58}
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:683
FASTLED_FORCE_INLINE CRGB()
Default constructor.
Definition crgb.h:158

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: