@ebest/

Ascii txt

Python

It turns text into Ascii art. It's easy.

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from pyfiglet import figlet_format
from termcolor import cprint
fonts = ['3-d', 'starwars', 'alphabet', 'doh', 'banner3-D', '3x5', 'slant', '5lineoblique', 'isometric1', 'letters', 'alligator', 'dotmatrix', 'bubble', 'bulbhead', 'digital']

while True:
  words = input("What? ")
  color = input("Color? ")
  on = input("On what? ")
  font = input("Font? ")
  for i in fonts:
    if font == i:
      cprint(figlet_format(words, font=font), color, 'on_' + on, attrs=['bold'])