This commit is contained in:
Lukas Schulz 2020-12-20 13:35:50 +01:00
parent f0f2efe58b
commit bcf1fe8b71

View file

@ -129,9 +129,9 @@ def scrollDownSongInfo(offset_x=0,offset_y=96):
if (cover_art is None): if (cover_art is None):
return return
for i in range(32): for i in range(32):
canvas = Image.new('RGB', (192,32), color = 'black') song_info_canvas = Image.new('RGB', (192,32), color = 'black')
canvas = canvas.paste(cover_art,(0,i)) song_info_canvas = song_info_canvas.paste(cover_art,(0,i))
songinfo = ImageDraw.Draw(canvas) songinfo = ImageDraw.Draw(song_info_canvas)
songinfo_offset_x = 33 songinfo_offset_x = 33
songinfo.text((songinfo_offset_x,songinfo_offset_y+11+i), song_name) songinfo.text((songinfo_offset_x,songinfo_offset_y+11+i), song_name)
songinfo.text((songinfo_offset_x,songinfo_offset_y+i), artist_name) songinfo.text((songinfo_offset_x,songinfo_offset_y+i), artist_name)