This commit is contained in:
Lennart J. Kurzweg (Nx2)
2024-09-09 16:28:17 +02:00
parent c16d439731
commit 96828bacd0
3 changed files with 11 additions and 9 deletions

View File

@@ -68,7 +68,7 @@ class Palette:
def ensure_color(c: Color, alter_sat: bool) -> list[int]:
hue, lum, sat = c.hls
if alter_sat:
new_sat = min(max(sat, 0.6) + 0.3, 1)
new_sat = min(sat**0.5, 1)
else:
new_sat = sat
new_lum = max(lum, 0.5)