diff options
| author | Gilles Castel <66gilles99@gmail.com> | 2019-03-16 16:35:19 +0100 |
|---|---|---|
| committer | Gilles Castel <66gilles99@gmail.com> | 2019-03-16 16:35:19 +0100 |
| commit | a1640a4f8ec0bb74e578199fd349a2cd4a87542a (patch) | |
| tree | 649a2a236a9835ac49d7aa88c22e41f56a44ad42 | |
| parent | 405ebf3b5774529b858d0cc819250c7e7918327e (diff) | |
Add w for white fill
| -rw-r--r-- | normal.py | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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 |
