diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-03-08 22:31:39 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-03-08 22:31:39 +1100 |
| commit | 0d983fb29c4abe5f53f388de73abc757eb2aeddd (patch) | |
| tree | 983ddf7bca59d8823e0e040e45cb9575f5d2c2dd | |
| parent | scheme: optimise dynamic scheme gen (diff) | |
| download | caelestia-cli-0d983fb29c4abe5f53f388de73abc757eb2aeddd.tar.gz caelestia-cli-0d983fb29c4abe5f53f388de73abc757eb2aeddd.tar.bz2 caelestia-cli-0d983fb29c4abe5f53f388de73abc757eb2aeddd.zip | |
format
| -rwxr-xr-x | scheme/autoadjust.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scheme/autoadjust.py b/scheme/autoadjust.py index 45b92d5..4b29ac1 100755 --- a/scheme/autoadjust.py +++ b/scheme/autoadjust.py @@ -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}") - |