xiwal

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

commit
2e5962262b552e32d1aa991901a35ef39cfdacdc
parent
b2eb3bd99cacb011f87ce1590b94f2dd47901feb
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2019-11-15 07:26
increase exponent in distance calculation

smaller values get smaller and larger values get larger

Diffstat

M xiwal.py 2 +-

1 files changed, 1 insertions, 1 deletions


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

@@ -136,7 +136,7 @@ def distance(color, i, offset=math.pi * 2 / 15):
  136   136 		c = max(c, C_BG)
  137   137 	if d > math.pi:
  138   138 		d = 2 * math.pi - d
  139    -1 	return d ** 2 * c
   -1   139 	return d ** 4 * c
  140   140 
  141   141 
  142   142 def score(colors):