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

◆ nscale8() [1/2]

FASTLED_FORCE_INLINE CRGB & CRGB::nscale8 ( const CRGB & scaledown)

Scale down a RGB to N/256ths of its current brightness, using "plain math" dimming rules.

"Plain math" dimming rules means that the low light levels may dim all the way to 100% black.

See also
scale8

Definition at line 116 of file crgb.hpp.

117{
118 r = FUNCTION_SCALE8(r, scaledown.r);
119 g = FUNCTION_SCALE8(g, scaledown.g);
120 b = FUNCTION_SCALE8(b, scaledown.b);
121 return *this;
122}
#define FUNCTION_SCALE8(a, b)
Definition crgb.hpp:15
InputGamut g
Definition rgbw.h:125

References CRGB(), FASTLED_FORCE_INLINE, fl::FL_NO_EXCEPT, FUNCTION_SCALE8, and fl::g.

+ Here is the call graph for this function: