https://github.com/tidwall/pony
🌈 🐴 Turn your terminal text into an absolutely beautiful display of dazzling colors....
https://github.com/tidwall/pony
lipizzan mustang percheron shire
Last synced: about 1 month ago
JSON representation
🌈 🐴 Turn your terminal text into an absolutely beautiful display of dazzling colors....
- Host: GitHub
- URL: https://github.com/tidwall/pony
- Owner: tidwall
- License: mit
- Created: 2017-10-13T22:43:17.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-13T23:18:54.000Z (over 7 years ago)
- Last Synced: 2025-04-05T03:12:17.717Z (about 2 months ago)
- Topics: lipizzan, mustang, percheron, shire
- Language: Go
- Size: 1000 Bytes
- Stars: 19
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🐴 `PONY` 🌈
Make rainbow text !!
## Getting Started
### Installing
To start using Pony, install Go and run `go get`:
```sh
$ go get -u github.com/tidwall/pony
```This will retrieve the library.
### Usage
There's only the one function:
```go
func Text(phrase string, offset int) string
```Here're two examples for the price of one.
```go
package mainimport (
"fmt"
"strings"
"time""github.com/tidwall/pony"
)func main() {
// Create a single line of dashes that are VERY wonderful to gaze upon.
fmt.Printf("%s\n", pony.Text(strings.Repeat("-", 80), 0))
// Create a rainbow effect that will straight up dazzle!
for i := 0; ; i++ {
fmt.Printf("\r%s ",
pony.Text("Mute - thy coronation - Meek - my Vive le roi", i),
)
time.Sleep(time.Second / 15)
}
}
```## Contact
Josh Baker [@tidwall](http://twitter.com/tidwall)
## License
Pony source code is available under the MIT [License](/LICENSE).