yes.
This commit is contained in:
parent
0f57762119
commit
47f2ee5ec7
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -103,7 +103,7 @@ def drawCanvas():
|
|||
|
||||
def scrolling_text(text,offset_x=0,offset_y=0):
|
||||
for i in range(font.getsize(text)[0]-160):
|
||||
scrolled_text_canvas = Image.new('RGB', (10, 32), color = 'black')
|
||||
scrolled_text_canvas = Image.new('RGB', (160, 32), color = 'black')
|
||||
scrolled_text = ImageDraw.Draw(scrolled_text_canvas)
|
||||
scrolled_text.text((-i,0), text)
|
||||
showImage(scrolled_text_canvas, offset_x, offset_y)
|
||||
|
|
Loading…
Reference in a new issue