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():
global canvas = Image.new('RGB', (192, 128), color = 'red')
global canvas = canvas.paste(get_track(), (0,0))
global changed = True
global canvas
canvas = Image.new('RGB', (192, 128), color = 'red')
canvas = canvas.paste(get_track(), (0,0))
global changed
changed = True
@ -90,7 +92,8 @@ if __name__ == "__main__":
while True:
if (changed):
showImage(canvas)
global changed = False
global changed
changed = False