FastLED 3.9.15
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 122 of file crgb.hpp.

123{
124 r = FUNCTION_SCALE8(r, scaledown.r);
125 g = FUNCTION_SCALE8(g, scaledown.g);
126 b = FUNCTION_SCALE8(b, scaledown.b);
127 return *this;
128}
#define FUNCTION_SCALE8(a, b)
Definition crgb.hpp:17

References CRGB(), FASTLED_FORCE_INLINE, and FUNCTION_SCALE8.

+ Here is the call graph for this function: