This commit is contained in:
Lukas Schulz 2020-12-20 00:48:36 +01:00
parent d7151da47f
commit b550e2d703

View file

@ -89,7 +89,9 @@ def drawCanvas():
songinfo.text((songinfo_offset_x,songinfo_offset_y+10), song_name)
songinfo.text((songinfo_offset_x,songinfo_offset_y), artist_name)
showImage(canvas)
if(ImageDraw.textlength(song_name)>160):
scrolled_text_canvas = Image.new('RGB', (10, 32), color = 'black')
scrolled_text = ImageDraw.Draw(scrolled_text)
if(scrolled_text.textlength(song_name)>160):
x = threading.Thread(target=scrolling_text,args=(song_name,songinfo_offset_x,songinfo_offset_y+10))
if(ImageDraw.textlength(artist_name)>160):
y = threading.Thread(target=scrolling_text,args=(artist_name,songinfo_offset_x,songinfo_offset_y))