diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-05 17:53:13 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-05 17:53:13 +1100 |
| commit | f9c60a483d41289c149f52939bfc0e0680077ff4 (patch) | |
| tree | e4fe1ff1a3558af0371b8176a4848180486cabca /scheme/gen-scheme.fish | |
| parent | install: add dep for app2unit (diff) | |
| download | caelestia-cli-f9c60a483d41289c149f52939bfc0e0680077ff4.tar.gz caelestia-cli-f9c60a483d41289c149f52939bfc0e0680077ff4.tar.bz2 caelestia-cli-f9c60a483d41289c149f52939bfc0e0680077ff4.zip | |
scheme: use material for colour gen
Replaces okolors
Also boost neutral chroma and all chroma
Diffstat (limited to 'scheme/gen-scheme.fish')
| -rwxr-xr-x | scheme/gen-scheme.fish | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/scheme/gen-scheme.fish b/scheme/gen-scheme.fish index 0d618ad..7f95001 100755 --- a/scheme/gen-scheme.fish +++ b/scheme/gen-scheme.fish @@ -10,16 +10,8 @@ contains -- "$argv[2]" light dark && set -l theme $argv[2] || set -l theme dark set -l variants vibrant tonalspot expressive fidelity fruitsalad rainbow neutral content monochrome # Generate colours -set -l colours (okolors $img -k 14 -w 0) +set -l colours ($src/score.py $img) for variant in $variants mkdir -p $src/../data/schemes/dynamic/$variant - $src/autoadjust.py $theme $variant $colours > $src/../data/schemes/dynamic/$variant/$theme.txt + $src/autoadjust.py $theme $variant $colours | head -c -1 > $src/../data/schemes/dynamic/$variant/$theme.txt end - -# Generate layers and accents -set -l tmp (mktemp) -$src/genmaterial.py $img $theme > $tmp -for variant in $variants - grep -FA 15 $variant $tmp | tail -15 | head -c -1 >> $src/../data/schemes/dynamic/$variant/$theme.txt -end -rm $tmp |