From 9a9eccbb421e22e3cd0ceb8f0f9c59b024ef90c4 Mon Sep 17 00:00:00 2001 From: Passthem <514827965@qq.com> Date: Mon, 14 Apr 2025 14:37:08 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=8A=E6=B6=82=E7=9A=84=E7=99=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/shader.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/shader.c b/src/shader.c index 501f180..32d4354 100644 --- a/src/shader.c +++ b/src/shader.c @@ -1,5 +1,9 @@ #include "shader.h" Color shader(int index, double time) { + if (index == 0) { + return hex_to_color(0xFFFFFF); + } + return hsv_to_color(time * 120 + index * 6, 1, 1); } \ No newline at end of file