summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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