From a1640a4f8ec0bb74e578199fd349a2cd4a87542a Mon Sep 17 00:00:00 2001 From: Gilles Castel <66gilles99@gmail.com> Date: Sat, 16 Mar 2019 16:35:19 +0100 Subject: Add w for white fill --- normal.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/normal.py b/normal.py index a2643f0..9bed909 100644 --- a/normal.py +++ b/normal.py @@ -175,14 +175,20 @@ def fire(self, combination): if 'f' in combination: style['fill'] = 'black' style['fill-opacity'] = 0.12 - style['marker-end'] = 'none' - style['marker-start'] = 'none' + if 'b' in combination: style['fill'] = 'black' style['fill-opacity'] = 1 + + if 'w' in combination: + style['fill'] = 'white' + style['fill-opacity'] = 1 + + if {'f', 'b', 'w'} & combination: style['marker-end'] = 'none' style['marker-start'] = 'none' - if not {'f', 'b'} & combination: + + if not {'f', 'b', 'w'} & combination: style['fill'] = 'none' style['fill-opacity'] = 1 -- cgit v1.2.3