糊涂的白

This commit is contained in:
Passthem
2025-04-14 14:37:08 +08:00
parent 869da9e7dd
commit 9a9eccbb42

View File

@ -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);
}