From bb2eec1d67beba47587e5d36170231bad2487bee Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Thu, 12 Jun 2025 16:02:08 +1000 Subject: material: tone down chroma boost --- src/caelestia/utils/material/generator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/caelestia/utils/material') diff --git a/src/caelestia/utils/material/generator.py b/src/caelestia/utils/material/generator.py index 235b2ce..656a5af 100755 --- a/src/caelestia/utils/material/generator.py +++ b/src/caelestia/utils/material/generator.py @@ -88,12 +88,12 @@ def harmonize(a: Hct, b: Hct) -> Hct: def lighten(colour: Hct, amount: float) -> Hct: diff = (100 - colour.tone) * amount - return Hct.from_hct(colour.hue, colour.chroma + diff / 2, colour.tone + diff) + return Hct.from_hct(colour.hue, colour.chroma + diff / 5, colour.tone + diff) def darken(colour: Hct, amount: float) -> Hct: diff = colour.tone * amount - return Hct.from_hct(colour.hue, colour.chroma + diff / 2, colour.tone - diff) + return Hct.from_hct(colour.hue, colour.chroma + diff / 5, colour.tone - diff) def distance(colour: Cam16, base: Cam16) -> float: -- cgit v1.2.3-freya