FastLED 3.9.15
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages

◆ 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 128 of file crgb.hpp.

129{
130 CRGB out;
131 out.r = FUNCTION_SCALE8(r, scaledown.r);
132 out.g = FUNCTION_SCALE8(g, scaledown.g);
133 out.b = FUNCTION_SCALE8(b, scaledown.b);
134 return out;
135}
#define FUNCTION_SCALE8(a, b)
Definition crgb.hpp:17
FASTLED_FORCE_INLINE CRGB()=default
Default constructor.

References CRGB(), FASTLED_FORCE_INLINE, and FUNCTION_SCALE8.

+ Here is the call graph for this function: