master
Lukas Schulz 2020-12-20 13:54:19 +01:00
parent 80abe05976
commit 0ee15b1629
1 changed files with 4 additions and 4 deletions

View File

@ -144,8 +144,8 @@ def scrollDownSongInfo(offset_x=0,offset_y=96):
song_info_canvas = Image.new('RGB', (192,32), color = 'black')
songinfo = ImageDraw.Draw(song_info_canvas)
songinfo_offset_x = 33
songinfo.text((songinfo_offset_x,16+i), song_name)
songinfo.text((songinfo_offset_x,5+i), artist_name)
songinfo.text((songinfo_offset_x,15+i), song_name)
songinfo.text((songinfo_offset_x,4+i), artist_name)
song_info_canvas.paste(cover_art,(0,i))
showImage(song_info_canvas, offset_x, offset_y)
time.sleep(0.001)
@ -160,8 +160,8 @@ def scrollUpSongInfo(offset_x=0, offset_y=96):
song_info_canvas = Image.new('RGB', (192,32), color = 'black')
songinfo = ImageDraw.Draw(song_info_canvas)
songinfo_offset_x = 33
songinfo.text((songinfo_offset_x,16+(33-i)), song_name)
songinfo.text((songinfo_offset_x,5+(33-i)), artist_name)
songinfo.text((songinfo_offset_x,15+(33-i)), song_name)
songinfo.text((songinfo_offset_x,4+(33-i)), artist_name)
song_info_canvas.paste(cover_art,(0,(33-i)))
showImage(song_info_canvas, offset_x, offset_y)
time.sleep(0.001)