From b88b761f67544865c742c810f2936b669873a93b Mon Sep 17 00:00:00 2001 From: Drashna Jaelre Date: Tue, 15 Oct 2024 07:10:19 -0700 Subject: [PATCH] Update quantum/rgb_matrix/animations/starlight_smooth_anim.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: フィルターペーパー <76888457+filterpaper@users.noreply.github.com> --- quantum/rgb_matrix/animations/starlight_smooth_anim.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/quantum/rgb_matrix/animations/starlight_smooth_anim.h b/quantum/rgb_matrix/animations/starlight_smooth_anim.h index a85937e9579..d1f59ccfa55 100644 --- a/quantum/rgb_matrix/animations/starlight_smooth_anim.h +++ b/quantum/rgb_matrix/animations/starlight_smooth_anim.h @@ -14,13 +14,13 @@ bool STARLIGHT_SMOOTH(effect_params_t* params) { } for (uint8_t i = led_min; i < led_max; i++) { - HSV hsv = rgb_matrix_config.hsv; + RGB_MATRIX_TEST_LED_FLAGS(); uint16_t time = scale16by8((g_rgb_timer / 2) + time_offsets[i], rgb_matrix_config.speed / 16); + HSV hsv = rgb_matrix_config.hsv; hsv.v = scale8(abs8(sin8(time) - 128) * 2, hsv.v); + RGB rgb = rgb_matrix_hsv_to_rgb(hsv); - RGB rgb = rgb_matrix_hsv_to_rgb(hsv); - RGB_MATRIX_TEST_LED_FLAGS(); rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b); }