Skip to content
/ pony Public

🌈 🐴 Turn your terminal text into an absolutely beautiful display of dazzling colors....

License

Notifications You must be signed in to change notification settings

tidwall/pony

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🐴 PONY 🌈

Make rainbow text !!

Getting Started

Installing

To start using Pony, install Go and run go get:

$ go get -u github.com/tidwall/pony

This will retrieve the library.

Usage

There's only the one function:

func Text(phrase string, offset int) string

Here're two examples for the price of one.

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

License

Pony source code is available under the MIT License.

About

🌈 🐴 Turn your terminal text into an absolutely beautiful display of dazzling colors....

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages