Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Black is the ANSI 16 color black. Black lipgloss.Color = "0" // Red is the ANSI 16 color red. Red lipgloss.Color = "1" // Green is the ANSI 16 color green. Green lipgloss.Color = "2" // Yellow is the ANSI 16 color yellow. Yellow lipgloss.Color = "3" // Blue is the ANSI 16 color blue. Blue lipgloss.Color = "4" // Magenta is the ANSI 16 color magenta. Magenta lipgloss.Color = "5" // Cyan is the ANSI 16 color cyan. Cyan lipgloss.Color = "6" // White is the ANSI 16 color white. White lipgloss.Color = "7" // Gray is the ANSI 16 color "bright black", or gray. Gray lipgloss.Color = "8" // BrightRed is the ANSI 16 color bright red. BrightRed lipgloss.Color = "9" // BrightGreen is the ANSI 16 color bright green. BrightGreen lipgloss.Color = "10" // BrightYellow is the ANSI 16 color bright yellow. BrightYellow lipgloss.Color = "11" // BrightBlue is the ANSI 16 color bright blue. BrightBlue lipgloss.Color = "12" // BrightMagenta is the ANSI 16 color bright magenta. BrightMagenta lipgloss.Color = "13" // BrightCyan is the ANSI 16 color bright cyan. BrightCyan lipgloss.Color = "14" // BrightWhite is the ANSI 16 color bright white. BrightWhite lipgloss.Color = "15" )
Variables ¶
This section is empty.
Functions ¶
func ANSI256ColorCube ¶
ANSI256ColorCube returns an ANSI 256 color from the 6x6x6 color cube range. Color intensities are rounded to the nearest ~16.6% (1/6th) increment.
func ANSI256Grayscale ¶
ANSI256Grayscale returns an ANSI 256 color from the grayscale range. Intensity is rounded to the nearest ~4.16% (1/24th) increment.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.