Rename RGB and HSV structs (#24471)
This commit is contained in:
parent
a10e7cc858
commit
6129af93f4
59 changed files with 122 additions and 117 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue