yes.
This commit is contained in:
parent
3ad7744e99
commit
91bbabc938
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -108,7 +108,7 @@ def scrolling_text(text,offset_x=0,offset_y=0):
|
||||||
scrolled_text.text((-i,0), text)
|
scrolled_text.text((-i,0), text)
|
||||||
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')
|
||||||
time.sleep(2)
|
time.sleep(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, 32), color = 'black')
|
scrolled_text_canvas = Image.new('RGB', (160, 32), color = 'black')
|
||||||
|
@ -116,7 +116,7 @@ def scrolling_text(text,offset_x=0,offset_y=0):
|
||||||
scrolled_text.text(((-(font.getsize(text)[0]-160))+i+1,0), text)
|
scrolled_text.text(((-(font.getsize(text)[0]-160))+i+1,0), text)
|
||||||
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')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue