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

◆ colorBoost()

CRGB fl::HSV16::colorBoost ( EaseType saturation_function = EASE_IN_QUAD,
EaseType luminance_function = EASE_NONE ) const

Definition at line 181 of file hsv16.cpp.

181 {
182 HSV16 hsv = *this;
183
184 if (saturation_function != EASE_NONE) {
185 u16 inv_sat = 65535 - hsv.s;
186 inv_sat = ease16(saturation_function, inv_sat);
187 hsv.s = (65535 - inv_sat);
188 }
189
190 if (luminance_function != EASE_NONE) {
191 hsv.v = ease16(luminance_function, hsv.v);
192 }
193
194 return hsv.ToRGB();
195}
u16 ease16(EaseType type, u16 i)
Definition ease.h:126
@ EASE_NONE
Definition ease.h:22
HSV16()=default

References HSV16(), fl::ease16(), fl::EASE_NONE, s, ToRGB(), and v.

Referenced by CRGB::colorBoost().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: