commit 584ad807cc145dead82a727b49ddbb972ebe6e50
parent e92f1fb220e3556e707d51db44bf9dbec98ed65d
Author: フィルターペーパー <76888457+filterpaper@users.noreply.github.com>
Date: Sun, 6 Jul 2025 14:44:44 +0800
Refactor Starlight Smooth matrix effect (#25442)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/quantum/rgb_matrix/animations/starlight_smooth_anim.h b/quantum/rgb_matrix/animations/starlight_smooth_anim.h
@@ -9,7 +9,7 @@ static uint8_t phase_offsets[RGB_MATRIX_LED_COUNT];
hsv_t STARLIGHT_SMOOTH_math(hsv_t hsv, uint8_t i, uint8_t time) {
if (phase_offsets[i] == 0) {
- phase_offsets[i] = rand() % 255;
+ phase_offsets[i] = random8();
}
hsv.v = scale8(abs8(sin8((time + phase_offsets[i]) / 2) - 128) * 2, hsv.v);
return hsv;