aboutsummaryrefslogtreecommitdiff
path: root/quantum/rgb_matrix/animations/hue_pendulum_anim.h
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2024-10-12 10:10:02 +1100
committerGitHub <noreply@github.com>2024-10-12 00:10:02 +0100
commit6129af93f497077a994e8e41473e2bd3d6ea5e67 (patch)
tree68de5019339936b281fe337a5d8e5273f8b7dec5 /quantum/rgb_matrix/animations/hue_pendulum_anim.h
parenta10e7cc8582114267ab474a0049619b510199322 (diff)
Rename RGB and HSV structs (#24471)
Diffstat (limited to 'quantum/rgb_matrix/animations/hue_pendulum_anim.h')
-rw-r--r--quantum/rgb_matrix/animations/hue_pendulum_anim.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/rgb_matrix/animations/hue_pendulum_anim.h b/quantum/rgb_matrix/animations/hue_pendulum_anim.h
index 7d8cbcdfb2..ba0a5b45a4 100644
--- a/quantum/rgb_matrix/animations/hue_pendulum_anim.h
+++ b/quantum/rgb_matrix/animations/hue_pendulum_anim.h
@@ -5,7 +5,7 @@ RGB_MATRIX_EFFECT(HUE_PENDULUM)
// Change huedelta to adjust range of hue change. 0-255.
// Looks better with a low value and slow speed for subtle change.
// Hue Pendulum - color changes in a wave to the right before reversing direction
-static HSV HUE_PENDULUM_math(HSV hsv, uint8_t i, uint8_t time) {
+static hsv_t HUE_PENDULUM_math(hsv_t hsv, uint8_t i, uint8_t time) {
uint8_t huedelta = 12;
hsv.h = hsv.h + scale8(abs8(sin8(time) + (g_led_config.point[i].x) - 128) * 2, huedelta);
return hsv;