From be9b3569e0a4eff96bdd1d1e4c6e1d6246fdfe19 Mon Sep 17 00:00:00 2001 From: Passthem <514827965@qq.com> Date: Mon, 14 Apr 2025 16:31:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E9=BB=98=E8=AE=A4=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E5=97=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/shader.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/shader.c b/src/shader.c index f047ee3..92225b4 100644 --- a/src/shader.c +++ b/src/shader.c @@ -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); } \ No newline at end of file