[FREE SOURCE CODE] How to make your python tools look cooler (colors and ascii art)
In this guide I’ll show you how to make your tools look really cool and colorful with source code included… all of that for free, exclusively for nulled!
So we are going to start out with color, color is very important if you wanna make your tool look good
To use color in python we are going to use colorama, you will need to install it first by running the command
pip install colorama
once that’s done you can use it in your script, to do that add the following things to the beginning of your script
from colorama import Fore, Style from colorama import init, Fore, Back, Style init(convert=True)
now all you have to do is use the fore command with print, for example
print(Fore.RED + ‘some red text’)
you can do the same if you want multiple lines, simply by using 3x " like this
print(Fore.GREEN + “”" three cool lines “”")
you can easily change the color just by changing it in the command itself, a list of colors can be found here
Great, we are done with coloring, now the part with the cool ascii art, to use ascii we are going to use FIGlet
To install figlet for python you will have to run this command:
pip install pyfiglet
Once you’ve installed it you will need to put the following lines in your script
import pyfiglet from pyfiglet import Figlet
Got that? Cool, almost done!
You can now go ahead and use any site you wish to get cool ascii art text, I personally use this one: http://patorjk.com/software/taag/
You can simply choose a font and type your text, once that’s done all you have to do is print it in your script like this
print(Fore.MAGENTA + “”" .. __ __ .. ______ .______ __ ___ __ | || | | | | | / __ \ | _ \ | | / \ | |
---| |----| | | |
---| |----| | | | | |) | | | / ^ \ | | | | | | | | | | | | | | | / | | / /\ \ | | | | |
--' | | | | –’ | | |\ ----.| | / _____ \ |
----. |__| \______/ |__| \______/ | _| .||| // _\ || . ___ ._____ .. ______ . . _______ | _ \ / \ | _ \ | | / __ \ | \ | | | | | |) | / ^ \ | |) |
---| |---- | | | | | | | | | | / / /\ \ | / | | | | | | | .
| | __| | | / _____ \ | |\ \----. | | | –’ | | |\ | | | | _| // __\ | _| `.| || ____/ || _| |______| “”")
and that’s it folks, you’re ready to go, down below you will find all the things I just explained to you in a python script, feel free to use it as a template but please don’t reupload it and call it your own, please give me credit.
Also please edit your comment and let me know what you think