-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfunk.py
29 lines (26 loc) · 840 Bytes
/
funk.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
print("""
Yes we can do funky colors such as
\x1b[93myellow \x1b[91mt\x1b[92me\x1b[94mx\x1b[96mt
\x1b[0mor \x1b[7mblack on white
\x1b[0mor \x1b[45;94mblue on purple
\x1b[4mwith underline
\x1b[3mor italics
\x1b[1mand bold!\x1b[0m""")
# https://en.wikipedia.org/wiki/ANSI_escape_code
print('And spinning wheel for progress: -', end='')
import time
for ct in range(30):
x = ct % 3
if x == 0:
print('\b\\', end='')
elif x == 1:
print('\b/', end='')
elif x == 2:
print('\b-', end='')
time.sleep_ms(100)
print()
print("Emojis as well! 😇 🙂 😊 😉 😀 😆 😁 😅 😂 🤣 🙃 ")
# but note:
# we cannot "Run" it in Atom, not even in comments. It works only via upload
# also add a space after every emoji, otherwise they overlap
# https://unicode.org/emoji/charts/full-emoji-list.html