forked from muhky/scryer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbanner.py
85 lines (68 loc) · 1.59 KB
/
banner.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import os
END = '\001\033[0m\002'
is_windows = os.name == 'nt'
def print_banner():
print('\r')
padding = ' '
S = [
'███████╗',
'██╔════╝',
'███████╗',
'╚════██║',
'███████║',
'╚══════╝'
]
C = [
' ██████╗',
'██╔════╝',
'██║ ',
'██║ ',
'╚██████╗',
' ╚═════╝'
]
R = [
'██████╗ ',
'██╔══██╗',
'██████╔╝',
'██╔══██╗',
'██║ ██║',
'╚═╝ ╚═╝'
]
Y = [
'██╗ ██╗',
'╚██╗ ██╔╝',
' ╚████╔╝ ',
' ╚██╔╝ ',
' ██║ ',
' ╚═╝ '
]
E = [
'███████╗',
'██╔════╝',
'█████╗ ',
'██╔══╝ ',
'███████╗',
'╚══════╝'
]
banner = [S, C, R, Y, E, R]
final = []
init_color = 89
txt_color = init_color
cl = 0
for charset in range(0, 6):
for pos in range(0, len(banner)):
for i in range(0, len(banner[pos][charset])):
clr = f'\033[38;5;{txt_color}m' if not is_windows else ''
char = f'{clr}{banner[pos][charset][i]}'
final.append(char)
cl += 1
txt_color = txt_color + 1 if cl <= 3 else txt_color
cl = 0
txt_color = init_color
if init_color % 3 == 1:
init_color += 1
if charset < 5: final.append('\n ')
print(f" {''.join(final)}")
print(f'{END}')
if __name__ == '__main__':
print_banner()