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

◆ operator*()

FASTLED_FORCE_INLINE CRGB operator* ( const CRGB & p1,
uint8_t d )

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

Definition at line 216 of file crgb.hpp.

217{
218 return CRGB( qmul8( p1.r, d),
219 qmul8( p1.g, d),
220 qmul8( p1.b, d));
221}
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
Representation of an RGB pixel (Red, Green, Blue)
Definition crgb.h:54

References FASTLED_FORCE_INLINE, and qmul8().

+ Here is the call graph for this function: