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

◆ setRGB()

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

Allow assignment from red, green, and blue.

Parameters
nrnew red value
ngnew green value
nbnew blue value

Definition at line 182 of file crgb.h.

183 {
184 r = nr;
185 g = ng;
186 b = nb;
187 return *this;
188 }
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: