From 3ad7744e99b7bb45ec18c6138be25dedcf9a7d43 Mon Sep 17 00:00:00 2001 From: Lukas Schulz Date: Sun, 20 Dec 2020 01:10:48 +0100 Subject: [PATCH] yes. --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 20685ec..7afb824 100644 --- a/main.py +++ b/main.py @@ -109,13 +109,15 @@ def scrolling_text(text,offset_x=0,offset_y=0): showImage(scrolled_text_canvas, offset_x, offset_y) time.sleep(0.1) print('scrolled '+str(i)+' px') + time.sleep(2) for i in range(font.getsize(text)[0]-160): scrolled_text_canvas = Image.new('RGB', (160, 32), color = 'black') scrolled_text = ImageDraw.Draw(scrolled_text_canvas) - scrolled_text.text(((-(font.getsize(text)[0]-160))+i,0), text) + scrolled_text.text(((-(font.getsize(text)[0]-160))+i+1,0), text) showImage(scrolled_text_canvas, offset_x, offset_y) time.sleep(0.1) print('scrolled '+str(i)+' px') +