FastLED 3.10.6
Loading...
Searching...
No Matches

◆ nscale8() [2/2]

CRGB & CRGB::nscale8 ( fl::u8 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 86 of file crgb.cpp.hpp.

86 {
87 nscale8x3(r, g, b, scaledown);
88 return *this;
89}
InputGamut g
Definition rgbw.h:124

References CRGB(), and fl::g.

Referenced by fl::gfx::blur1d(), fl::gfx::blur2d(), fl::gfx::blurColumns(), fl::gfx::blurColumns(), fl::gfx::blurRows(), fl::gfx::blurRows(), draw(), FL_DISABLE_WARNING(), loop(), nscale(), fl::PerlinParticlePunch::renderAmbient(), fl::PerlinParticlePunch::renderDebris(), and fl::PerlinParticlePunch::renderMeteor().

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