mirror of
https://github.com/rzzzwilson/pymlac.git
synced 2025-06-10 09:32:41 +00:00
Inverted display colours to white on black
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user