Browse Source

Solid reactive: improve fading effect (#22656)

pull/22872/head
フィルターペーパー 3 months ago
committed by GitHub
parent
commit
f39386a112
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      quantum/rgb_matrix/animations/solid_reactive_anim.h

+ 1
- 1
quantum/rgb_matrix/animations/solid_reactive_anim.h 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;
}


Loading…
Cancel
Save