| 179 | } |
| 180 | |
| 181 | CRGB 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 |
no test coverage detected