rice change

This commit is contained in:
Lennart J. Kurzweg (Nx2)
2024-10-09 23:35:49 +02:00
parent c6f7d73f89
commit f32d77f7ff
2 changed files with 2 additions and 2 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(sat**0.5, 1)
new_sat = min((sat**0.5) + 0.4, 1)
else:
new_sat = sat
new_lum = max(lum, 0.5)