An open API service indexing awesome lists of open source software.

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....

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 main

import (
"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).