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

138{
139 CRGB out;
140 out.r = FUNCTION_SCALE8(r, scaledown.r);
141 out.g = FUNCTION_SCALE8(g, scaledown.g);
142 out.b = FUNCTION_SCALE8(b, scaledown.b);
143 return out;
144}
#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: