MCPcopy Create free account
hub / github.com/FastLED/FastLED / colorBoost

Method colorBoost

src/fl/gfx/hsv16.cpp.hpp:181–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181CRGB HSV16::colorBoost(EaseType saturation_function, EaseType luminance_function) const {
182 HSV16 hsv = *this;
183
184 if (saturation_function != EaseType::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 != EaseType::EASE_NONE) {
191 hsv.v = ease16(luminance_function, hsv.v);
192 }
193
194 return hsv.ToRGB();
195}
196
197} // namespace fl

Callers 4

fillFrameBufferNoiseFunction · 0.45
drawFunction · 0.45
fillFrameBufferFireFunction · 0.45
rainbowWaveFunction · 0.45

Calls 2

ease16Function · 0.85
ToRGBMethod · 0.45

Tested by

no test coverage detected