This commit is contained in:
Lukas Schulz 2020-12-20 00:02:58 +01:00
parent cc72eb6207
commit a7178dd283

15
main.py
View file

@ -57,11 +57,20 @@ def get_track():
#screen.SetPixel(0,1,255,255,255)
offset_x = 10
offset_y = 10
for x in range(31):
for y in range(31):
# for x in range(31):
# for y in range(31):
# r, g, b = image.getpixel((x, y))
# screen.SetPixel(x+offset_x,y+offset_y,r,g,b)
showImage(image)
print('image set')
def showImage(image, offset_x = 0, offset_y = 0):
width, height = image.size
for x in range(width):
for y in range(height):
r, g, b = image.getpixel((x, y))
screen.SetPixel(x+offset_x,y+offset_y,r,g,b)
print('image set')
#if token:
# sp = spotipy.Spotify(auth=token)