logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git
commit: f39386a112c440c02c7003d59b1624590140dd07
parent e67d2c2f6fd3a50ac109eabbe93985f4e055963a
Author: フィルターペーパー <76888457+filterpaper@users.noreply.github.com>
Date:   Tue,  9 Jan 2024 19:12:42 +0800

Solid reactive: improve fading effect (#22656)


Diffstat:

Mquantum/rgb_matrix/animations/solid_reactive_anim.h2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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; }