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

◆ setRGB()

FASTLED_FORCE_INLINE CRGB & CRGB::setRGB ( uint8_t nr,
uint8_t ng,
uint8_t nb )
inline

Allow assignment from red, green, and blue.

Parameters
nrnew red value
ngnew green value
nbnew blue value

Definition at line 169 of file crgb.h.

170 {
171 r = nr;
172 g = ng;
173 b = nb;
174 return *this;
175 }

References CRGB(), and FASTLED_FORCE_INLINE.

+ Here is the call graph for this function: