yes.
This commit is contained in:
parent
c2744f4695
commit
73abd95afa
1 changed files with 2 additions and 1 deletions
1
main.py
1
main.py
|
@ -117,6 +117,7 @@ def scrolling_text(text,offset_x=0,offset_y=0):
|
||||||
showImage(scrolled_text_canvas, offset_x, offset_y)
|
showImage(scrolled_text_canvas, offset_x, offset_y)
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
#print('scrolled '+str(i)+' px')
|
#print('scrolled '+str(i)+' px')
|
||||||
|
if((5-(font.getsize(text)[0]-160)*0.2)>0):
|
||||||
time.sleep(5-(font.getsize(text)[0]-160)*0.2)
|
time.sleep(5-(font.getsize(text)[0]-160)*0.2)
|
||||||
for i in range(font.getsize(text)[0]-160):
|
for i in range(font.getsize(text)[0]-160):
|
||||||
scrolled_text_canvas = Image.new('RGB', (160, 11), color = 'black')
|
scrolled_text_canvas = Image.new('RGB', (160, 11), color = 'black')
|
||||||
|
|
Loading…
Reference in a new issue