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

◆ setColorCode()

FASTLED_FORCE_INLINE CRGB & CRGB::setColorCode ( 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 200 of file crgb.h.

201 {
202 r = (colorcode >> 16) & 0xFF;
203 g = (colorcode >> 8) & 0xFF;
204 b = (colorcode >> 0) & 0xFF;
205 return *this;
206 }

References CRGB(), and FASTLED_FORCE_INLINE.

+ Here is the call graph for this function: