This commit is contained in:
Lukas Schulz 2020-12-20 00:16:16 +01:00
parent d09b7cdcb3
commit 99de81a654

11
main.py
View file

@ -77,9 +77,11 @@ def main():
def updateImage(): def updateImage():
global canvas = Image.new('RGB', (192, 128), color = 'red') global canvas
global canvas = canvas.paste(get_track(), (0,0)) canvas = Image.new('RGB', (192, 128), color = 'red')
global changed = True canvas = canvas.paste(get_track(), (0,0))
global changed
changed = True
@ -90,7 +92,8 @@ if __name__ == "__main__":
while True: while True:
if (changed): if (changed):
showImage(canvas) showImage(canvas)
global changed = False global changed
changed = False