#include "terminalcolors.h" /*/ import colorsys; def make_color(hue, sat, val): t = colorsys.hsv_to_rgb(hue, sat, val); r, g, b = map(lambda x: int(x * 255), t); return f"\\e[38;2;{r};{g};{b}m"; /*/ struct colors terminalcolors = { .precedences = { /*/ for i in range(20): print(f'L"{make_color(i / 20, 0.9, 1.0)}",'); /*/ }, /*/ print(f'.numeric = L"{make_color(31 / 360, 0.8, 1.0)}",'); print(f'.string = L"{make_color(300 / 360, 0.8, 1.0)}",'); print(f'.variable = L"{make_color(263 / 360, 0.8, 1.0)}",'); print(f'.builtin = L"{make_color(0 / 360, 0.0, 0.52)}",'); /*/ .reset = L"\e[0m", };