diff options
author | フィルターペーパー <76888457+filterpaper@users.noreply.github.com> | 2024-01-09 19:12:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-09 22:12:42 +1100 |
commit | f39386a112c440c02c7003d59b1624590140dd07 (patch) | |
tree | bdfc7c24b01b692628b1cc5446f2a272aa05c65f /quantum/rgb_matrix | |
parent | e67d2c2f6fd3a50ac109eabbe93985f4e055963a (diff) |
Solid reactive: improve fading effect (#22656)
Diffstat (limited to 'quantum/rgb_matrix')
-rw-r--r-- | quantum/rgb_matrix/animations/solid_reactive_anim.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/rgb_matrix/animations/solid_reactive_anim.h b/quantum/rgb_matrix/animations/solid_reactive_anim.h index edf6041350..e18ffb5f2b 100644 --- a/quantum/rgb_matrix/animations/solid_reactive_anim.h +++ b/quantum/rgb_matrix/animations/solid_reactive_anim.h @@ -7,7 +7,7 @@ static HSV SOLID_REACTIVE_math(HSV hsv, uint16_t offset) { # ifdef RGB_MATRIX_SOLID_REACTIVE_GRADIENT_MODE hsv.h = scale16by8(g_rgb_timer, qadd8(rgb_matrix_config.speed, 8) >> 4); # endif - hsv.h += qsub8(130, offset); + hsv.h += scale8(255 - offset, 64); return hsv; } |