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 72 of file crgb.cpp.

73{
74 nscale8x3( r, g, b, scaledown);
75 return *this;
76}
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:357

References CRGB(), and nscale8x3().

Referenced by blur1d(), blurColumns(), blurRows(), fill_2dnoise8(), and map_data_into_colors_through_palette().

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