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

165 {
166 r = nr;
167 g = ng;
168 b = nb;
169 return *this;
170 }

References CRGB(), and FASTLED_FORCE_INLINE.

+ Here is the call graph for this function: