Return a new CRGB object after performing a linear interpolation between this object and the passed in object.
Definition at line 102 of file crgb.cpp.
102 {
104
105 ret.r =
lerp8by8(r, other.r, amountOf2);
106 ret.g =
lerp8by8(g, other.g, amountOf2);
107 ret.b =
lerp8by8(b, other.b, amountOf2);
108
109 return ret;
110}
LIB8STATIC uint8_t lerp8by8(uint8_t a, uint8_t b, fract8 frac)
Linear interpolation between two unsigned 8-bit values, with 8-bit fraction.
FASTLED_FORCE_INLINE CRGB()
Default constructor.
References CRGB(), and lerp8by8().