This commit is contained in:
Lukas Schulz 2020-12-20 01:53:00 +01:00
parent a7f1aed555
commit fe160d2f15

View file

@ -111,7 +111,7 @@ def drawCanvas():
def scrolling_text(text,offset_x=0,offset_y=0): def scrolling_text(text,offset_x=0,offset_y=0):
scroll_frame_time = (8/2)/(font.getsize(text)[0]-160) scroll_frame_time = (8/2)/(font.getsize(text)[0]-160)
print(scroll_frame_time) #print(scroll_frame_time)
if(scroll_frame_time>0.1): if(scroll_frame_time>0.1):
scroll_frame_time = 0.1 scroll_frame_time = 0.1
for i in range(font.getsize(text)[0]-160): for i in range(font.getsize(text)[0]-160):