This commit is contained in:
2 * r + 2 * t
2025-03-08 22:31:39 +11:00
parent 08af99b57d
commit 0d983fb29c
+2 -2
View File
@@ -54,7 +54,7 @@ colour_names = [
"blue",
"lavender",
"success",
"error"
"error",
]
@@ -71,6 +71,7 @@ def rgb_to_hex(rgb: tuple[float, float, float]) -> str:
def hex_to_hls(hex: str) -> tuple[float, float, float]:
return rgb_to_hls(*hex_to_rgb(hex))
def hls_to_hex(h: str, l: str, s: str) -> str:
return rgb_to_hex(hls_to_rgb(h, l, s))
@@ -156,4 +157,3 @@ if __name__ == "__main__":
for i, colour in enumerate(colours):
print(f"{colour_names[i]} {colour}")