This commit is contained in:
Francesco Mecca 2019-08-25 18:51:45 +02:00
parent 42931f2925
commit 1dac4d2bfb

View file

@ -3,6 +3,7 @@ from colorama import Style, Fore
from time import sleep from time import sleep
from os import system from os import system
import sys
frames = [] frames = []
@ -18,6 +19,22 @@ def animate(n):
sleep(0.2) sleep(0.2)
system('clear') system('clear')
def intro():
with open('animation/intro2.txt', 'r') as f:
anim = f.read()
system('clear')
print(f'{Fore.MAGENTA}', end='')
for ch in anim:
print(ch, end='')
sys.stdout.flush()
sleep(0.01)
# for i in range(5):
# system('clear')
# print(anim)
# sleep(0.4)
print(f'{Style.RESET_ALL}')
if __name__ == '__main__': if __name__ == '__main__':
from sys import argv from sys import argv
animate(int(argv[1])) animate(int(argv[1]))