Solid reactive: improve fading effect (#22656)

This commit is contained in:
フィルターペーパー 2024-01-09 19:12:42 +08:00 committed by GitHub
parent e67d2c2f6f
commit f39386a112
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}