summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Castel <66gilles99@gmail.com>2019-03-16 16:35:19 +0100
committerGilles Castel <66gilles99@gmail.com>2019-03-16 16:35:19 +0100
commita1640a4f8ec0bb74e578199fd349a2cd4a87542a (patch)
tree649a2a236a9835ac49d7aa88c22e41f56a44ad42
parent405ebf3b5774529b858d0cc819250c7e7918327e (diff)
Add w for white fill
-rw-r--r--normal.py12
1 files 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