Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- text = "ВШ ИТИС"
- colors = ["\033[0;31m", "\033[0;33m", "\033[1;33m", "\033[0;32m", "\033[1;34m", "\033[0;34m", "\033[0;35m"]
- end = "\033[0m"
- reset_line = "\x1b[1A\x1b[2K"
- shift = 0
- while True:
- to_print_lst = []
- time.sleep(0.15)
- for i in range(len(text)):
- to_print_lst.append(colors[(shift + i) % len(colors)] + text[i])
- print(reset_line + "".join(to_print_lst) + end)
- shift += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement