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 70 of file crgb.hpp.

71{
72 r = qmul8( r, d);
73 g = qmul8( g, d);
74 b = qmul8( b, d);
75 return *this;
76}
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: