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

◆ nscale8() [2/2]

CRGB & CRGB::nscale8 ( uint8_t 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
nscale8x3

Definition at line 88 of file crgb.cpp.

88 {
89 nscale8x3(r, g, b, scaledown);
90 return *this;
91}
LIB8STATIC void nscale8x3(uint8_t &r, uint8_t &g, uint8_t &b, fract8 scale)
Scale three one-byte values by a fourth one, which is treated as the numerator of a fraction whose de...
Definition scale8.h:363

References CRGB(), and nscale8x3().

Referenced by fl::blur1d(), fl::blurColumns(), fl::blurRows(), and fill_2dnoise8().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: