diff options
| author | フィルターペーパー | 2025-07-06 08:44:44 +0200 |
|---|---|---|
| committer | GitHub | 2025-07-06 08:44:44 +0200 |
| commit | 584ad807cc145dead82a727b49ddbb972ebe6e50 (patch) | |
| tree | 6fb2ccb25ecd264b7df20d459d5dfdb408a110be /quantum | |
| parent | e92f1fb220e3556e707d51db44bf9dbec98ed65d (diff) | |
Refactor Starlight Smooth matrix effect (#25442)
Diffstat (limited to 'quantum')
| -rw-r--r-- | quantum/rgb_matrix/animations/starlight_smooth_anim.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/rgb_matrix/animations/starlight_smooth_anim.h b/quantum/rgb_matrix/animations/starlight_smooth_anim.h index a87c06f9df..5467ea0a59 100644 --- 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; |