Solid reactive: improve fading effect (#22656)
parent
e67d2c2f6f
commit
f39386a112
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue