This commit is contained in:
Lukas Schulz 2020-12-20 01:03:25 +01:00
parent 37a7991c58
commit fa9f0fa3a9

View file

@ -104,7 +104,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 = ImageDraw.Draw(scrolled_text)
scrolled_text = ImageDraw.Draw(scrolled_text_canvas)
scrolled_text.text((-i,0), text)
showImage(scrolled_text_canvas, offset_x, offset_y)
time.sleep(1)