FastLED 3.9.15
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 }

References CRGB(), FASTLED_FORCE_INLINE, and FL_NOEXCEPT.

+ Here is the call graph for this function: