FastLED 3.10.8
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
InputGamut g
Definition rgbw.h:125
FASTLED_FORCE_INLINE CRGB() FL_NO_EXCEPT
Default constructor.
Definition crgb.h:111

References CRGB(), FASTLED_FORCE_INLINE, fl::FL_NO_EXCEPT, FUNCTION_SCALE8, and fl::g.

+ Here is the call graph for this function: