FastLED 3.10.8
Loading...
Searching...
No Matches

◆ setColorCode()

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

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

Parameters
colorcodea packed 24 bit color code

Definition at line 209 of file crgb.h.

210 {
211 r = (colorcode >> 16) & 0xFF;
212 g = (colorcode >> 8) & 0xFF;
213 b = (colorcode >> 0) & 0xFF;
214 return *this;
215 }
InputGamut g
Definition rgbw.h:125

References CRGB(), FASTLED_FORCE_INLINE, fl::FL_NO_EXCEPT, and fl::g.

+ Here is the call graph for this function: