mirror of
https://github.com/Cian-H/qmk_firmware.git
synced 2026-03-02 04:58:03 +00:00
Rename RGB and HSV structs (#24471)
This commit is contained in:
@@ -4,9 +4,9 @@ RGB_MATRIX_EFFECT(STARLIGHT)
|
||||
|
||||
void set_starlight_color(uint8_t i, effect_params_t* params) {
|
||||
uint16_t time = scale16by8(g_rgb_timer, rgb_matrix_config.speed / 8);
|
||||
HSV hsv = rgb_matrix_config.hsv;
|
||||
hsv_t hsv = rgb_matrix_config.hsv;
|
||||
hsv.v = scale8(abs8(sin8(time) - 128) * 2, hsv.v);
|
||||
RGB rgb = rgb_matrix_hsv_to_rgb(hsv);
|
||||
rgb_t rgb = rgb_matrix_hsv_to_rgb(hsv);
|
||||
rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user