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 205 of file crgb.h.

206 {
207 r = (colorcode >> 16) & 0xFF;
208 g = (colorcode >> 8) & 0xFF;
209 b = (colorcode >> 0) & 0xFF;
210 return *this;
211 }

References CRGB(), and FASTLED_FORCE_INLINE.

+ Here is the call graph for this function: