Solid reactive: improve fading effect (#22656)
This commit is contained in:
parent
e67d2c2f6f
commit
f39386a112
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ static HSV SOLID_REACTIVE_math(HSV hsv, uint16_t offset) {
|
||||||
# ifdef RGB_MATRIX_SOLID_REACTIVE_GRADIENT_MODE
|
# ifdef RGB_MATRIX_SOLID_REACTIVE_GRADIENT_MODE
|
||||||
hsv.h = scale16by8(g_rgb_timer, qadd8(rgb_matrix_config.speed, 8) >> 4);
|
hsv.h = scale16by8(g_rgb_timer, qadd8(rgb_matrix_config.speed, 8) >> 4);
|
||||||
# endif
|
# endif
|
||||||
hsv.h += qsub8(130, offset);
|
hsv.h += scale8(255 - offset, 64);
|
||||||
return hsv;
|
return hsv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue