Welcome to the ASCII Art Generator page.
This page contains a brief description and implementation instructions for the project.
Project Description
Creates simple ASCII art patterns from input. For example, prints a box or a triangle of a given size, or converts images/text to ASCII characters.
Project Requirements
Python 3.x.
How to Run the Project
- Write a script (e.g.
ascii_art.py
) that takes user input (size or a phrase) and prints a pattern of characters. - Run it:
python ascii_art.py
. Follow prompts for what to draw (e.g. “Enter size of triangle” or “Enter text to convert to ASCII banner”).
Key Concepts Learned
- Loops: Nested loops for shapes.
- Strings: Repeating characters, concatenation.
- Conditionals: For variations (hollow shapes vs filled).
Possible Extensions
- Use libraries like
pyfiglet
to turn text into ASCII banners. - Add more shapes (circle approximation, etc.).
- Animate the ASCII art (e.g. bouncing ball).