diff options
Diffstat (limited to 'quantum/rgb_matrix_animations/cycle_out_in_anim.h')
| -rw-r--r-- | quantum/rgb_matrix_animations/cycle_out_in_anim.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/quantum/rgb_matrix_animations/cycle_out_in_anim.h b/quantum/rgb_matrix_animations/cycle_out_in_anim.h index dc9d09fd3..29209e4d7 100644 --- a/quantum/rgb_matrix_animations/cycle_out_in_anim.h +++ b/quantum/rgb_matrix_animations/cycle_out_in_anim.h | |||
| @@ -9,8 +9,8 @@ bool CYCLE_OUT_IN(effect_params_t* params) { | |||
| 9 | uint8_t time = scale16by8(g_rgb_counters.tick, rgb_matrix_config.speed / 4); | 9 | uint8_t time = scale16by8(g_rgb_counters.tick, rgb_matrix_config.speed / 4); |
| 10 | for (uint8_t i = led_min; i < led_max; i++) { | 10 | for (uint8_t i = led_min; i < led_max; i++) { |
| 11 | RGB_MATRIX_TEST_LED_FLAGS(); | 11 | RGB_MATRIX_TEST_LED_FLAGS(); |
| 12 | int16_t dx = g_led_config.point[i].x - 112; | 12 | int16_t dx = g_led_config.point[i].x - k_rgb_matrix_center.x; |
| 13 | int16_t dy = g_led_config.point[i].y - 32; | 13 | int16_t dy = g_led_config.point[i].y - k_rgb_matrix_center.y; |
| 14 | uint8_t dist = sqrt16(dx * dx + dy * dy); | 14 | uint8_t dist = sqrt16(dx * dx + dy * dy); |
| 15 | hsv.h = 3 * dist / 2 + time; | 15 | hsv.h = 3 * dist / 2 + time; |
| 16 | RGB rgb = hsv_to_rgb(hsv); | 16 | RGB rgb = hsv_to_rgb(hsv); |
