]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - quantum/rgb_matrix_animations/colorband_val_anim.h
Fixing effects to respect user sat and val levels (#6275)
[qmk_firmware.git] / quantum / rgb_matrix_animations / colorband_val_anim.h
index 1e3740cea46de336e1cc8f29717d460caa57d53d..4b76924db9fd8c2caf64ca38a925387560902b35 100644 (file)
@@ -4,7 +4,7 @@ RGB_MATRIX_EFFECT(BAND_VAL)
 
 static void BAND_VAL_math(HSV* hsv, uint8_t i, uint8_t time) {
     int16_t v = rgb_matrix_config.val - abs(scale8(g_led_config.point[i].x, 228) + 28 - time) * 8;
-    hsv->v = v < 0 ? 0 : v;
+    hsv->v = scale8(v < 0 ? 0 : v, rgb_matrix_config.val);
 }
 
 bool BAND_VAL(effect_params_t* params) {