diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2016-07-23 01:37:22 +0200 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2016-07-23 01:37:22 +0200 |
commit | 859daffc7c219cbebbad471ef37dbde10279c5aa (patch) | |
tree | 75caa01f70d68c25c91cfce341e15fa5e535d0dd | |
parent | abbae3f0c7e6c882b2ac4ecd60ec29fa3ba0ec14 (diff) | |
download | maze-859daffc7c219cbebbad471ef37dbde10279c5aa.tar.xz |
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r-- | grid.py | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -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 |