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

◆ setColorCode()

FASTLED_FORCE_INLINE CRGB & CRGB::setColorCode ( fl::u32 colorcode)
inline

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

Parameters
colorcodea packed 24 bit color code

Definition at line 268 of file crgb.h.

269 {
270 r = (colorcode >> 16) & 0xFF;
271 g = (colorcode >> 8) & 0xFF;
272 b = (colorcode >> 0) & 0xFF;
273 return *this;
274 }

References CRGB(), and FASTLED_FORCE_INLINE.

+ Here is the call graph for this function: