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

◆ setRGB()

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

Allow assignment from red, green, and blue.

Parameters
nrnew red value
ngnew green value
nbnew blue value

Definition at line 232 of file crgb.h.

233 {
234 r = nr;
235 g = ng;
236 b = nb;
237 return *this;
238 }

References CRGB(), and FASTLED_FORCE_INLINE.

+ Here is the call graph for this function: