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

◆ operator=() [3/3]

FASTLED_FORCE_INLINE CRGB & CRGB::operator= ( const uint32_t colorcode)
inline

Allow assignment from 32-bit (really 24-bit) 0xRRGGBB color code.

Parameters
colorcodea packed 24 bit color code

Definition at line 152 of file crgb.h.

153 {
154 r = (colorcode >> 16) & 0xFF;
155 g = (colorcode >> 8) & 0xFF;
156 b = (colorcode >> 0) & 0xFF;
157 return *this;
158 }

References CRGB(), and FASTLED_FORCE_INLINE.

+ Here is the call graph for this function: