改默认模式嗯

This commit is contained in:
Passthem
2025-04-14 16:31:10 +08:00
parent 5bd4c9ab10
commit be9b3569e0

View File

@ -3,7 +3,7 @@
void init_status(Status* status) {
status->index = 0;
status->time = 0;
status->mode = LIGHT_MODE_WHITE;
status->mode = LIGHT_MODE_RAINBOW;
}
Color shader(Status* status) {
@ -14,8 +14,7 @@ Color shader(Status* status) {
switch (status->mode) {
case LIGHT_MODE_RAINBOW:
return hsv_to_color(status->time * 120 + status->index * 6, 1, 1);
default:
return hex_to_color(0xFFFFFF);
}
return hex_to_color(0xFFFFFF);
}