3 releases
new 0.1.2 | Jan 15, 2025 |
---|---|
0.1.1 | Jan 15, 2025 |
0.1.0 | Jan 15, 2025 |
#268 in Games
267 downloads per month
16KB
350 lines
ASCII Art Generator
A simple Rust crate for generating ASCII art text patterns.
Installation
Add this to your Cargo.toml
:
[dependencies]
ascii_art_generator = "0.1.0"
Usage
As a library
use ascii_art_generator::generate_pattern;
fn main() {
let pattern = generate_pattern("HELLO - *");
println!("{}", pattern);
}
As a binary
cargo install ascii_art_generator
ascii_art_generator
Then follow the prompts to enter your text and symbol.
Examples
Input: HELLO - *
Output:
* * ***** * * *****
* * * * * * *
***** ***** * * * *
* * * * * * *
* * ***** ***** ***** *****
License
This project is licensed under the MIT License - see the LICENSE file for details.