Documentation
¶
Index ¶
- func BgByte(in byte, r, g, b uint8) []byte
- func BgBytes(in []byte, r, g, b uint8) []byte
- func BgString(in string, r, g, b uint8) string
- func Bytes(in []byte, fr, fg, fb, br, bg, bb uint8) []byte
- func FgByte(in byte, r, g, b uint8) []byte
- func FgBytes(in []byte, r, g, b uint8) []byte
- func FgString(in string, r, g, b uint8) string
- func String(in string, fr, fg, fb, br, bg, bb uint8) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BgByte ¶
BgByte colorizes the background of the input with the terminal color that matches the closest the RGB color.
func BgBytes ¶
BgBytes colorizes the background of the input with the terminal color that matches the closest the RGB color.
func BgString ¶
BgString colorizes the background of the input with the terminal color that matches the closest the RGB color.
This is simply a helper for Bytes.
func Bytes ¶
Bytes colorizes the input with the terminal color that matches the closest the RGB color.
func FgByte ¶
Byte colorizes the input with the terminal color that matches the closest the RGB color.
func FgBytes ¶
Bytes colorizes the foreground with the terminal color that matches the closest the RGB color.
Types ¶
This section is empty.