This commit is contained in:
Passthem
2025-04-11 16:02:34 +08:00
parent d3c3d8b402
commit 0b8e208f83
2 changed files with 5 additions and 4 deletions

View File

@ -9,6 +9,7 @@
"spi_utils.h": "c",
"cstdint": "c",
"color_utils.h": "c",
"data_sban_period2.h": "c"
"data_sban_period2.h": "c",
"shader.h": "c"
}
}

View File

@ -2,7 +2,7 @@
#include "data_sban_period2.h"
Color shader(int index, double time) {
return hsv_to_color(270, 1,
sban_period2_get_count_at_time(
fmod(time, sban_period2_changes_time_length)));
return hsv_to_color(240, 1,
(double)sban_period2_get_count_at_time(
fmod(time, sban_period2_changes_time_length)) * 0.5);
}