This commit is contained in:
Lukas Schulz 2020-12-20 13:48:27 +01:00
parent df3e69c81e
commit 7a65318ef4

View file

@ -139,7 +139,7 @@ def scrollDownSongInfo(offset_x=0,offset_y=96):
songinfo.text((songinfo_offset_x,i), artist_name)
song_info_canvas.paste(cover_art,(0,i))
showImage(song_info_canvas, offset_x, offset_y)
time.sleep(0.01)
time.sleep(0.001)
def scrollUpSongInfo(offset_x=0, offset_y=96):
cover_art = get_track()
@ -153,7 +153,7 @@ def scrollUpSongInfo(offset_x=0, offset_y=96):
songinfo.text((songinfo_offset_x,(33-i)), artist_name)
song_info_canvas.paste(cover_art,(0,(33-i)))
showImage(song_info_canvas, offset_x, offset_y)
time.sleep(0.01)
time.sleep(0.001)
def scrolling_text(text,offset_x=0,offset_y=0):
scroll_frame_time = (8/2)/(font.getsize(text)[0]-160)