Ascii Art Web is a web application that generates ASCII art representations based on user input and chosen banner styles.
Ascii Art Web style is a simple web application built with Go (Golang) that allows users to input text and select from predefined banner styles to generate ASCII art. It processes the user input, handles special characters, and displays the ASCII art output using HTML and Custom CSS.
To run the project locally, follow these steps:
- Clone the repository:
git https://learn.zone01kisumu.ke/git/ebarsula/ascii-art-web-stylize.git
cd ascii-art-web-stylize
- Start the server on port 8080:
go run .
- Open your web browser and navigate to:
http://localhost:8080/
- Enter your text in the textarea, choose a banner style, and click "Create art" to generate ASCII art based on your input.
- The core functionality of Ascii-art-Web involves converting user-provided text into ASCII art. Here's an overview of the implementation:
- The application runs a web server using Go's net/http package.
- GET /: Serves the index.html file located in the templates directory.
- POST /: Processes form submissions containing user input for generating ASCII art.
- Reads ASCII character representations from files (standard.txt, thinkertoy.txt, shadow.txt).
- Processes user input to handle special characters like newline (\n) and tab (\t).
- Generates ASCII art by mapping characters to their respective ASCII representations.
- Checks for empty ASCII art files (standard.txt, thinkertoy.txt, shadow.txt).
- Handles issues related to newline characters in the input string.
This application is a basic implementation of ASCII art generation using Go and Custom CSS,
suitable for educational purposes or as a starting point for more complex ASCII art applications.
Aoron Ochieng |
Emmanuel Barsulai |
Abraham kingoo |
© 2024 Ascii Art Web™. All Rights Reserved.
This README.md file provides a clear overview of our project, including its purpose, how to run it,
details about the ASCII art generation algorithm, and credits to the authors.
Adjust the URLs and details as per your specific project setup and preferences.