color

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Prefix     = string("\u001b[")
	TxtBlack   = "30"
	TxtRed     = "31"
	TxtGreen   = "32"
	TxtYellow  = "33"
	TxtBlue    = "34"
	TxtMagenta = "35"
	TxtCyan    = "36"
	TxtWhite   = "37"
	BkBlack    = "40"
	BkRed      = "41"
	BkGreen    = "42"
	BkYellow   = "43"
	BkBlue     = "44"
	BkMagenta  = "45"
	BkCyan     = "46"
	BkWhite    = "47"
	Bright     = "1"
	Rst        = "0"
	Suffix     = "m"
)
View Source
const (
	C8 = iota
	C16
	C216
	C256
	G216
	G256
)

Variables

This section is empty.

Functions

func Bg256

func Bg256(i int, s ...string) string

func BgBlack

func BgBlack(s ...string) string

func BgBlue

func BgBlue(s ...string) string

func BgBrightBlack

func BgBrightBlack(s ...string) string

func BgBrightBlue

func BgBrightBlue(s ...string) string

func BgBrightCyan

func BgBrightCyan(s ...string) string

func BgBrightGreen

func BgBrightGreen(s ...string) string

func BgBrightMagenta

func BgBrightMagenta(s ...string) string

func BgBrightRed

func BgBrightRed(s ...string) string

func BgBrightWhite

func BgBrightWhite(s ...string) string

func BgBrightYellow

func BgBrightYellow(s ...string) string

func BgCyan

func BgCyan(s ...string) string

func BgGreen

func BgGreen(s ...string) string

func BgMagenta

func BgMagenta(s ...string) string

func BgRGB

func BgRGB(r, g, b int, s ...string) string

func BgRed

func BgRed(s ...string) string

func BgWhite

func BgWhite(s ...string) string

func BgYellow

func BgYellow(s ...string) string

func Black

func Black(s ...string) string

Black makes the text black or escapes the subsequent text black if called without arguments

func Blue

func Blue(s ...string) string

func BrightBlack

func BrightBlack(s ...string) string

func BrightBlue

func BrightBlue(s ...string) string

func BrightCyan

func BrightCyan(s ...string) string

func BrightGreen

func BrightGreen(s ...string) string

func BrightMagenta

func BrightMagenta(s ...string) string

func BrightRed

func BrightRed(s ...string) string

func BrightWhite

func BrightWhite(s ...string) string

func BrightYellow

func BrightYellow(s ...string) string

func Cyan

func Cyan(s ...string) string

func Green

func Green(s ...string) string

Green makes the text black or escapes the subsequent text green if called without arguments

func LinearGradient added in v0.1.0

func LinearGradient(t uint, start, end string, amount float32) string

func Magenta

func Magenta(s ...string) string

func Red

func Red(s ...string) string

Red makes the text black or escapes the subsequent text red if called without arguments

func Reset

func Reset() string

func Txt256

func Txt256(i int, s ...string) string

func TxtRGB

func TxtRGB(r, g, b int, s ...string) string

func White

func White(s ...string) string

func Yellow

func Yellow(s ...string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL