yes.
This commit is contained in:
parent
d7151da47f
commit
b550e2d703
1 changed files with 3 additions and 1 deletions
4
main.py
4
main.py
|
@ -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+10), song_name)
|
||||||
songinfo.text((songinfo_offset_x,songinfo_offset_y), artist_name)
|
songinfo.text((songinfo_offset_x,songinfo_offset_y), artist_name)
|
||||||
showImage(canvas)
|
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))
|
x = threading.Thread(target=scrolling_text,args=(song_name,songinfo_offset_x,songinfo_offset_y+10))
|
||||||
if(ImageDraw.textlength(artist_name)>160):
|
if(ImageDraw.textlength(artist_name)>160):
|
||||||
y = threading.Thread(target=scrolling_text,args=(artist_name,songinfo_offset_x,songinfo_offset_y))
|
y = threading.Thread(target=scrolling_text,args=(artist_name,songinfo_offset_x,songinfo_offset_y))
|
||||||
|
|
Loading…
Reference in a new issue