-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAscii_C.py
executable file
·129 lines (123 loc) · 4.39 KB
/
Ascii_C.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
#!/data/data/com.termux/files/usr/bin/python3
#Author prince kumar
# Date 25 dec
# Simple text to ascii converyter
#import all requirements..
import pyfiglet
import os
#Define some color-----------------
r = "\033[31;1m"
g = "\033[32;1m"
y = "\033[33;1m"
p = "\033[35;1m"
w = "\033[0;1m"
#let's make a banner dor this tool--------------------
def banner():
os.system('clear')
print(g)
print("""
_ _ _ _ _ _ _ {} |
{} / \ / \ / \ / \ / \ / \ / \ {} |
{}( a | s | c | i | i | _ | c ) {}| Made by prince
{}\_/ \_/ \_/ \_/ \_/ \_/ \_/ {}|
{} Youtube https://m.youtube.com/c/Princeweb
""".format(r, g, r, g, r, g, r, p))
banner()
#Make a Lists of Fonts-------------------------------
print()
print("""{}[{}01{}]{} Default {}[{}11{}]{} Dotmatrix""".format(y, w, y, p, y, w, y, p))
print("""{}[{}02{}]{} Slant {}[{}12{}]{} Bubble""".format(y, w, y, p, y, w, y, p))
print("""{}[{}03{}]{} 3-D {}[{}13{}]{} Bulbhead""".format(y, w, y, p, y, w, y, p))
print("""{}[{}04{}]{} 3×5 {}[{}14{}]{} Digital""".format(y, w, y, p, y, w, y, p))
print("""{}[{}05{}]{} 5lineoblique""".format(y, w, y, p))
print("""{}[{}06{}]{} Alphabet""".format(y, w, y, p))
print("""{}[{}07{}]{} Doh""".format(y, w, y, p))
print("""{}[{}08{}]{} letters""".format(y, w, y, p))
print("""{}[{}09{}]{} Isometric1""".format(y, w, y, p))
print("""{}[{}10{}]{} Alligaror""".format(y, w, y, p))
print()
print("{} Choose any font:\r ".format(r))
optn =int(input())
#Handle font requests------------------------------
if optn == 1:
print()
text = input("Enter a text to show: ")
print()
res = pyfiglet.figlet_format(text)
print("{} {}".format(g, res))
elif optn == 2:
print()
text = input("Enter a text to show: ")
res = pyfiglet.figlet_format(text, font = "slant" )
print("{} {}".format(g, res))
elif optn == 3:
print()
text = input("Enter a text to show: ")
res = pyfiglet.figlet_format(text, font = "3-d" )
print("{} {}".format(g, res))
elif optn == 4:
print()
text = input("Enter a text to show: ")
res = pyfiglet.figlet_format(text, font = "3x5" )
print("{} {}".format(g, res))
elif optn == 5:
print()
text = input("Enter a text to show: ")
res = pyfiglet.figlet_format(text, font = "5lineoblique" )
print("{} {}".format(g, res))
elif optn == 6:
print()
text = input("Enter a text to show: ")
res = pyfiglet.figlet_format(text, font = "alphabet" )
print("{} {}".format(g, res))
elif optn == 7:
print()
text = input("Enter a text to show: ")
res = pyfiglet.figlet_format(text, font = "doh" )
print("{} {}".format(g, res))
elif optn == 8:
text = input("Enter a text to show: ")
print()
res = pyfiglet.figlet_format(text, font = "latter" )
print("{} {}".format(g, res))
elif optn == 9:
print()
text = input("Enter a text to show: ")
res = pyfiglet.figlet_format(text, font = "isometric1" )
print("{} {}".format(g, res))
elif optn == 10:
print()
text = input("Enter a text to show: ")
res = pyfiglet.figlet_format(text, font = "alligator" )
print("{} {}".format(g, res))
elif optn == 11:
print()
text = input("Enter a text to show: ")
res = pyfiglet.figlet_format(text, font = "dotmatrix" )
print("{} {}".format(g, res))
elif optn == 12:
print()
text = input("Enter a text to show: ")
res = pyfiglet.figlet_format(text, font = "bubble" )
print("{} {}".format(g, res))
elif optn == 13:
print()
text = input("Enter a text to show: ")
res = pyfiglet.figlet_format(text, font = "bulbhead" )
print("{} {}".format(g, res))
elif optn == 14:
print()
text = input("Enter a text to show: ")
res = pyfiglet.figlet_format(text, font = "digital" )
print("{} {}".format(g, res))
elif optn == 15:
print()
youtube = "https://m.youtube.com/c/Princeweb"
ins = "https://instagram.com/sirprincekrvert"
print(""" {}i am prince kumar i a junior mechanical engineer
{} Youtube {} {}
Instagram {}
""".format(w, g, youtube, y, ins))
else:
print()
print("{}[{}!{}]{} Invalid option..".format(w, r, w, y))