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

◆ scale8() [2/2]

FASTLED_FORCE_INLINE CRGB CRGB::scale8 ( uint8_t scaledown) const

Return a CRGB object that is a scaled down version of this object.

Definition at line 130 of file crgb.hpp.

131{
132 CRGB out = *this;
133 nscale8x3( out.r, out.g, out.b, scaledown);
134 return out;
135}
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
FASTLED_FORCE_INLINE CRGB()=default
Default constructor.

References CRGB(), FASTLED_FORCE_INLINE, and nscale8x3().

+ Here is the call graph for this function: