yes.
This commit is contained in:
parent
fe160d2f15
commit
036c7d29e3
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -93,12 +93,12 @@ def drawCanvas():
|
||||||
songinfo = ImageDraw.Draw(canvas)
|
songinfo = ImageDraw.Draw(canvas)
|
||||||
songinfo_offset_x = 33
|
songinfo_offset_x = 33
|
||||||
songinfo_offset_y = 101
|
songinfo_offset_y = 101
|
||||||
songinfo.text((songinfo_offset_x,songinfo_offset_y+10), song_name)
|
songinfo.text((songinfo_offset_x,songinfo_offset_y+11), song_name)
|
||||||
songinfo.text((songinfo_offset_x,songinfo_offset_y), artist_name)
|
songinfo.text((songinfo_offset_x,songinfo_offset_y), artist_name)
|
||||||
|
|
||||||
#scrolling_text(song_name,songinfo_offset_x, songinfo_offset_y+10)
|
#scrolling_text(song_name,songinfo_offset_x, songinfo_offset_y+10)
|
||||||
if(font.getsize(song_name)[0]>160):
|
if(font.getsize(song_name)[0]>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+11))
|
||||||
x.start()
|
x.start()
|
||||||
print('scrolling text started')
|
print('scrolling text started')
|
||||||
if(font.getsize(artist_name)[0]>160):
|
if(font.getsize(artist_name)[0]>160):
|
||||||
|
|
Loading…
Reference in a new issue