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

◆ operator*=()

FASTLED_FORCE_INLINE CRGB & CRGB::operator*= ( uint8_t d)

Multiply each of the channels by a constant, saturating each channel at 0xFF.

Definition at line 61 of file crgb.hpp.

62{
63 r = qmul8( r, d);
64 g = qmul8( g, d);
65 b = qmul8( b, d);
66 return *this;
67}
LIB8STATIC_ALWAYS_INLINE uint8_t qmul8(uint8_t i, uint8_t j)
8x8 bit multiplication with 8-bit result, saturating at 0xFF.
Definition math8.h:470

References CRGB(), FASTLED_FORCE_INLINE, and qmul8().

+ Here is the call graph for this function: