-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodule.py
46 lines (44 loc) · 1.37 KB
/
module.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
def say(message):
print(message)
def color(message, color):
if color == "Gray":
print("\033[1;30;40m", message, "\033[0;37;40m")
elif color == "Yellow":
print("\033[1;33;40m", message, "\033[0;37;40m")
elif color == "Magenta":
print("\033[1;35;40m", message, "\033[0;37;40m")
elif color == "Cyan":
print("\033[1;36;40m", message, "\033[0;37;40m")
elif color == "White":
print("\033[1;37;40m", message, "\033[0;37;40m")
elif color == "Blue":
print("\033[1;34;40m", message, "\033[0;37;40m")
elif color == "Red":
print("\033[1;31;40m", message, "\033[0;37;40m")
elif color == "Green":
print("\033[1;32;40m", message, "\033[0;37;40m")
elif color == "Bright_Colour":
print("\033[1;37;40m", message, "\033[0;37;40m")
elif color == "Blinking_Text":
print("\033[5;37;40m", message, "\033[0;37;40m")
def SetColor(color):
if color == "Gray":
print("\033[1;30;40m")
elif color == "Yellow":
print("\033[1;33;40m")
elif color == "Magenta":
print("\033[1;35;40m")
elif color == "Cyan":
print("\033[1;36;40m")
elif color == "White":
print("\033[1;37;40m")
elif color == "Blue":
print("\033[1;34;40m")
elif color == "Red":
print("\033[1;31;40m")
elif color == "Green":
print("\033[1;32;40m")
elif color == "Bright":
print("\033[1;37;40m", message, "\033[0;37;40m")
elif color == "Blinking":
print("\033[5;37;40m")