From 859daffc7c219cbebbad471ef37dbde10279c5aa Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sat, 23 Jul 2016 01:37:22 +0200 Subject: grid: Add whitespace around operators MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- grid.py | 10 ++++------ 1 file 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 -- cgit v1.2.3-70-g09d2