-
Notifications
You must be signed in to change notification settings - Fork 0
/
color.py
54 lines (51 loc) · 1.88 KB
/
color.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
47
48
49
50
51
52
53
54
def warna():
print("+-------+")
print("| Color |")
print("+-------+")
print("\033[2mgray\033[0m ","abu-abu")
print("\033[31mred\033[0m ","merah")
print("\033[32mgreen\033[0m ","hijau")
print("\033[33myellow\033[0m ","kuning")
print("\033[34mblue\033[0m ","biru")
print("\033[35mpurple\033[0m ","ungu")
print("\033[36mcyan\033[0m ","cyan")
print("\033[90mdark gray\033[0m","abu-abu gelap")
warna()
def warnabg():
print("+------------------+")
print("| Background color |")
print("+------------------+")
print("\033[7mwhite\033[0m ","putih")
print("\033[40mblack\033[0m ","hitam")
print("\033[41mred\033[0m ","merah")
print("\033[42mgreen\033[0m ","hijau")
print("\033[43myellow\033[0m","kuning")
print("\033[44mblue\033[0m ","biru")
print("\033[45mpurple\033[0m","ungu")
print( "\033[46mcyan\033[0m ","cyan")
warnabg()
def warnacerah():
print("+---------------+")
print("| Bright colour |")
print("+---------------+")
print("\033[91mbright red\033[0m ","merah cerah")
print("\033[92mbright green\033[0m ","hijau cerah")
print("\033[93mbright yellow\033[0m","kuning cerah")
print("\033[94mbright blue\033[0m ","biru cerah")
print("\033[95mbright purple\033[0m","ungu cerah")
print("\033[96mbright cyan\033[0m ","cyan cerah")
print("\033[97mbright white\033[0m ","putih cerah")
warnacerah()
def bgcerah():
print("+-------------------+")
print("| Bright background |")
print("+-------------------+")
print("\033[47mbright gray\033[0m ","abu-abu cerah")
print("\033[100mdark light gray\033[0m","abu-abu gelap")
print("\033[101mbright red\033[0m ","merah cerah")
print("\033[102mbright green\033[0m ","hijau cerah")
print("\033[103mbright yellow\033[0m ","kuning cerah")
print("\033[104mbright blue\033[0m ","biru cerah")
print("\033[105mbright purple\033[0m ","ungu cerah")
print("\033[106mbright cyan\033[0m ","cyan cerah")
bgcerah()