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

◆ operator=() [3/3]

FASTLED_FORCE_INLINE CRGB & fl::CRGB::operator= ( const u32 colorcode)
inline

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

Parameters
colorcodea packed 24 bit color code

Definition at line 170 of file crgb.h.

171 {
172 r = (colorcode >> 16) & 0xFF;
173 g = (colorcode >> 8) & 0xFF;
174 b = (colorcode >> 0) & 0xFF;
175 return *this;
176 }

References CRGB(), FASTLED_FORCE_INLINE, and FL_NOEXCEPT.

+ Here is the call graph for this function: