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

◆ scale8() [1/2]

FASTLED_FORCE_INLINE CRGB CRGB::scale8 ( const CRGB & scaledown) const

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

Definition at line 131 of file crgb.hpp.

132{
133 CRGB out;
134 out.r = FUNCTION_SCALE8(r, scaledown.r);
135 out.g = FUNCTION_SCALE8(g, scaledown.g);
136 out.b = FUNCTION_SCALE8(b, scaledown.b);
137 return out;
138}
#define FUNCTION_SCALE8(a, b)
Definition crgb.hpp:15
FASTLED_FORCE_INLINE CRGB() FL_NOEXCEPT
Default constructor.
Definition crgb.h:111

References CRGB(), FASTLED_FORCE_INLINE, FL_NOEXCEPT, and FUNCTION_SCALE8.

+ Here is the call graph for this function: