Skip to content

Truecolor is a Go package that provides methods for printing 24-bit true color text in your terminal

License

Notifications You must be signed in to change notification settings

wayneashleyberry/truecolor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Screenshot 2020-05-26 at 1 33 47 pm

Go Go Report Card Go Reference

Truecolor is a Go package that provides methods for printing 24-bit true color text in your terminal. Not all terminals support 24-bit color, see https://github.com/termstandard/colors for more.

Installation

go get github.com/wayneashleyberry/truecolor

Usage

package main

import (
	"github.com/wayneashleyberry/truecolor/pkg/color"
)

func main() {
	color.Color(186, 218, 85).Println("Hello, World!")
	color.Black().Background(186, 218, 85).Println("Hello, World!")
	color.White().Underline().Print("Hello, World!\n")
	color.White().Dim().Println("Hello, World!")
	color.White().Italic().Println("Hello, World!")
	color.White().Bold().Println("Hello, World!")
	color.Color(255, 165, 00).Printf("Hello, %s!\n", "World")
}

About

Truecolor is a Go package that provides methods for printing 24-bit true color text in your terminal

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages