FastLED 3.10.8
Loading...
Searching...
No Matches

◆ colorBoost()

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

Definition at line 182 of file hsv16.cpp.hpp.

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

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

Referenced by fl::CRGB::colorBoost().

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