https://github.com/himujjal/asciitextnim
https://github.com/himujjal/asciitextnim
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/himujjal/asciitextnim
- Owner: Himujjal
- Created: 2020-09-17T21:24:47.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-18T09:43:09.000Z (over 4 years ago)
- Last Synced: 2025-01-23T11:37:24.334Z (4 months ago)
- Language: Nim
- Size: 7.81 KB
- Stars: 11
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ASCIITEXT - Large ASCII Text in Nim
## Prints ASCII values as large fonts.
Use it in CLI or Web or as a string
## Installation
```sh
nimble install asciitext
```## API
Use the function
```nim
import asciiTextecho asciiText("23h 23m 0s")
#[
Prints:
_____ _____ _ _ _____ _____ ___ ___ _____ _____
/___ \ |___ | | | | | /___ \ |___ | / |/ | / _ \ / ___/
___| | _| | | |_| | ___| | _| | / /| /| | | | | | | |___
/ ___/ |_ { | _ | / ___/ |_ { / / |__/ | | | |/| | \___ \
| |___ ___| | | | | | | |___ ___| | / / | | | |_| | ___| |
|_____| |_____/ |_| |_| |_____| |_____/ /_/ |_| \_____/ /_____/
]#
```## Change Styles
Use the enum `textStyle` to change style:
Currently there are only two styles present. `textStyle1` which gives you a string with small Ascii letters. `textStyle2` which gives you a string with large Ascii letters as shown above