summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2016-07-23 01:37:22 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2016-07-23 01:37:22 +0200
commit859daffc7c219cbebbad471ef37dbde10279c5aa (patch)
tree75caa01f70d68c25c91cfce341e15fa5e535d0dd
parentabbae3f0c7e6c882b2ac4ecd60ec29fa3ba0ec14 (diff)
downloadmaze-859daffc7c219cbebbad471ef37dbde10279c5aa.tar.xz
grid: Add whitespace around operatorsHEADmaster
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r--grid.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/grid.py b/grid.py
index f1621ec..9c753db 100644
--- a/grid.py
+++ b/grid.py
@@ -109,16 +109,14 @@ class Grid(object):
draw.line([(x1, y1), (x1, y2)], fill='#000000')
if not cell.is_linked_to(cell.east):
- r=1
draw.line([(x2, y1), (x2, y2)], fill='#000000', width=4)
- draw.ellipse((x2-r, y1-r, x2+r, y1+r), fill='#000000')
- draw.ellipse((x2-r, y2-r, x2+r, y2+r), fill='#000000')
+ draw.ellipse((x2 - 1, y1 - 1, x2 + 1, y1 + 1), fill='#000000')
+ draw.ellipse((x2 - 1, y2 - 1, x2 + 1, y2 + 1), fill='#000000')
if not cell.is_linked_to(cell.south):
- r=1
draw.line([(x1, y2), (x2, y2)], fill='#000000', width=4)
- draw.ellipse((x1-r, y2-r, x1+r, y2+r), fill='#000000')
- draw.ellipse((x2-r, y2-r, x2+r, y2+r), fill='#000000')
+ draw.ellipse((x1 - 1, y2 - 1, x1 + 1, y2 + 1), fill='#000000')
+ draw.ellipse((x2 - 1, y2 - 1, x2 + 1, y2 + 1), fill='#000000')
img = img.filter(ImageFilter.GaussianBlur(radius=0.8))
return img