This commit is contained in:
Lukas Schulz 2020-12-20 13:54:19 +01:00
parent 80abe05976
commit 0ee15b1629

View file

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