Create an engaging and visually appealing representation of your text using different font styles and colors. The output is random-based, so you'll get a unique text art each time you run the application. Enjoy experimenting with various text inputs and experience the magic of random fancy font generator!
- After launching the application, you will see a decorative greeting message along with a copyright note.
- The application then prompts you to input a text string of your choice. You can type in any text you'd like to convert into a fancy font text art.
- Once you've entered the text, press Enter, and the application will clear the console.
- The application will then generate a random font style and color for your text art and display it on the console.
- After the text art is displayed, you will see a completion message with an option to generate another art.
This Python script is a simple text decoration tool that generates a fancy font text art using the help of pyfiglet and termcolor libraries. Here's a breakdown of the code:
pyfiglet
: A Python library to create text banners or ASCII art using Figlet font.termcolor
: A Python library to colorize your terminal output.random, os
: Built-in Python libraries for random selection and system operations.
get_random_font_style()
: Returns a random Figlet font style from the available list.get_random_color()
: Returns a random color string from the predefined list.print_text(text)
: Takes a text input, selects a random font style and color, converts the text to ASCII art using the chosen font style, and prints the colored ASCII art on the console.
The script prints a decorative greeting with a random-based copyright message. It prompts the user to input a text string for generating the fancy font text art. After generating the ASCII art, it prints a completion message with an option to generate another art. The script uses random font styles and colors to create a visually appealing text art. It is important to note that the output may vary each time the script is executed due to the randomness introduced by the random_font_style and random_color variables.
This project is licensed under the MIT License - see the LICENSE.md file for details.