From bfa69d7275f1754bd55fccf71fef441a0d0c08dc Mon Sep 17 00:00:00 2001 From: Ross Wilson Date: Sat, 21 May 2016 13:17:13 +0700 Subject: [PATCH] Inverted display colours to white on black --- pymlac/Display.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pymlac/Display.py b/pymlac/Display.py index 60e64b9..3434dec 100644 --- a/pymlac/Display.py +++ b/pymlac/Display.py @@ -48,7 +48,7 @@ class Display(object): def __init__(self): # create and initialise the image array # reference .array[y*ScaleMaxX + x] - self.array = [0] * self.ScaleMaxY * self.ScaleMaxX + self.array = [1] * self.ScaleMaxY * self.ScaleMaxX # set internal state self.running = 0 @@ -179,7 +179,7 @@ class Display(object): y = y1 for x in range(x1, x2 + 1): (xx, yy) = (y, x) if is_steep else (x, y) - self.array[yy*self.ScaleMaxX + xx] = 1 + self.array[yy*self.ScaleMaxX + xx] = 0 error -= abs(dy) if error < 0: y += ystep