commit ab6e4fcc88b636a2ec0488692d63105dbd301b40 parent 456a9ffbec2fa25709b0a6d96d471ed123a14dd6 Author: Antoine Amarilli <a3nm@a3nm.net> Date: Sat, 7 Sep 2019 00:16:26 +0200 better colors Diffstat:
splitw.py | | | 9 | +++++---- |
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/splitw.py b/splitw.py @@ -221,10 +221,11 @@ if args.debug: for r in range(in_h): for c in range(in_w): matrix[r][c] = img[r][c] - if lowheight[c]: - matrix[r][c][1] = 255 - if lowweight[c]: - matrix[r][c][2] = 255 + if top[c] <= r <= bottom[c]: + if lowheight[c]: + matrix[r][c][1] = 128 + if lowweight[c]: + matrix[r][c][0] = 128 if c in bars: matrix[r][c][0] = 255 matrix[r][c][1] = 0