xiwal

Generate terminal color schemes
git clone https://git.ce9e.org/xiwal.git

commit
8995a2b57e8b6dbf8ceaf76312a2ab169226da2c
parent
2360c3c880fe6945dedc39ab1952f7ecee89070b
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2021-01-20 22:09
adapt values

Diffstat

M xiwal/scheme.py 8 ++++----

1 files changed, 4 insertions, 4 deletions


diff --git a/xiwal/scheme.py b/xiwal/scheme.py

@@ -4,10 +4,10 @@ import functools
    4     4 from . import lch
    5     5 
    6     6 # Minimum chroma for red/green (signal colors)
    7    -1 C_RG = 60
   -1     7 C_RG = 0.15
    8     8 
    9     9 # MAXIMUM chroma for greys
   10    -1 C_GREY = 8
   -1    10 C_GREY = 0.02
   11    11 
   12    12 C_FACTOR = 1.2
   13    13 
@@ -16,8 +16,8 @@ C_FACTOR = 1.2
   16    16 # - dark colors should have sufficient contrast to both black and white
   17    17 # - light colors should have different levels of lightness so they can
   18    18 #   easily be distinguished
   19    -1 L_DARK = 2, 40, 55, 55, 45, 45, 50, 85
   20    -1 L_LIGHT = 20, 55, 75, 80, 60, 60, 75, 100
   -1    19 L_DARK = 0.15, 0.50, 0.60, 0.60, 0.55, 0.55, 0.60, 0.90
   -1    20 L_LIGHT = 0.30, 0.65, 0.75, 0.85, 0.65, 0.65, 0.80, 1.00
   21    21 
   22    22 # hue for red reference color
   23    23 OFFSET = math.pi * 2 / 14