Compatibility for python 3.7

main
justuser31 2 years ago
parent 33c335b001
commit e0995302eb

@ -96,14 +96,14 @@ class PixelArt:
for j in range(128):
color = self.canvas.itemcget(self.canvas.find_closest(i*12+6, j*12+6), "fill")
if color != "white":
match self.colors.index(color):
case 0:
tc = self.colors.index(color)
if tc == 0:
color = "red"
case 1:
elif tc == 1:
color = "green"
case 2:
elif tc == 2:
color = "blue"
case 3:
elif tc == 3:
color = "black"
pixel_data.append([i, 127-j, color])
f = open('out.txt', 'w')

Loading…
Cancel
Save