summaryrefslogtreecommitdiff
path: root/src/caelestia/utils/material
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-12 16:02:08 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-12 16:02:08 +1000
commitbb2eec1d67beba47587e5d36170231bad2487bee (patch)
treed12cc70a52e6d27d0ced4bb96395d63980be7aaf /src/caelestia/utils/material
parentscheme: impl random + fix single schemes (diff)
downloadcaelestia-cli-bb2eec1d67beba47587e5d36170231bad2487bee.tar.gz
caelestia-cli-bb2eec1d67beba47587e5d36170231bad2487bee.tar.bz2
caelestia-cli-bb2eec1d67beba47587e5d36170231bad2487bee.zip
material: tone down chroma boost
Diffstat (limited to '')
-rwxr-xr-xsrc/caelestia/utils/material/generator.py4
1 files changed, 2 insertions, 2 deletions
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: