xiwal

Generate terminal color schemes
git clone https://git.ce9e.org/xiwal.git

commit
fb8dfd700c92ae91985dac5765e02964e510bb3c
parent
ffb400a789b9abb5ba727e96ec4df66aa549eafe
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2026-01-28 09:49
use functools.cache

Diffstat

M xiwal/scheme.py 2 +-

1 files changed, 1 insertions, 1 deletions


diff --git a/xiwal/scheme.py b/xiwal/scheme.py

@@ -25,7 +25,7 @@ OFFSET = math.pi * 2 / 14
   25    25 ORDER = [0, 2, 1, 4, 5, 3]
   26    26 
   27    27 
   28    -1 @functools.lru_cache(maxsize=32)
   -1    28 @functools.cache
   29    29 def distance(color, i):
   30    30     hue = math.pi / 3 * ORDER[i] + OFFSET
   31    31     d = abs(color[2] - hue)