Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/gookit/color
/ functions
Functions
460 in github.com/gookit/color
⨍
Functions
460
◇
Types & classes
16
Function
Blueln
Blueln print message line with Blue color
quickstart.go:141
Function
Bluep
Bluep print message with Blue color
quickstart.go:135
Method
C16
C16 convert color-256 to 16 color.
color_256.go:112
Method
C256
IsValid value func (c RGBColor) IsValid() bool { return c[3] <= AsBg } C256 returns the closest approximate 256 (8 bit) color
color_rgb.go:258
Method
Code
Code convert to color code string. eg: "12"
color_256.go:129
Function
Cyanf
Cyanf print message with Cyan color
quickstart.go:147
Function
Cyanln
Cyanln print message line with Cyan color
quickstart.go:150
Function
Cyanp
Cyanp print message with Cyan color
quickstart.go:144
Function
Example
()
color_test.go:15
Method
FullCode
FullCode convert to color code string with prefix. eg: "38;5;12"
color_256.go:132
Function
Grayf
Grayf print message with Gray color
quickstart.go:156
Function
Grayln
Grayln print message line with Gray color
quickstart.go:159
Function
Grayp
Grayp print message with Gray color
quickstart.go:153
Function
Greenf
Greenf print message with Green color
quickstart.go:165
Function
Greenln
Greenln print message line with Green color
quickstart.go:168
Function
Greenp
Greenp print message with Green color
quickstart.go:162
Method
Info
Info log message
_examples/ref/idea.go:24
Method
IsBg
IsBg color
color_256.go:156
Method
IsEmpty
IsEmpty value
color_256.go:165
Method
IsFg
IsFg color
color_256.go:147
Function
IsTerminal
IsTerminal returns true if the given file descriptor is a terminal. Usage: fd := os.Stdout.Fd() fd := uintptr(syscall.Stdout) // for Windows IsTe
detect_windows.go:236
Function
IsTty
renderColorCodeOnCmd enable cmd color render. func renderColorCodeOnCmd(fn func()) { err := EnableVirtualTerminalProcessing(syscall.Stdout, true) //
detect_windows.go:221
Method
IsValid
IsValid color value
color_16.go:364
Function
Magentaf
Magentaf print message with Magenta color
quickstart.go:183
Function
Magentaln
Magentaln print message line with Magenta color
quickstart.go:186
Function
Magentap
Magentap print message with Magenta color
quickstart.go:180
Function
NewLog
(fields map[string]string)
_examples/ref/idea.go:19
Method
Print
Print messages
color_tag.go:536
Method
Print
Print messages. Usage: color.Green.Print("message") OR: green := color.FgGreen.Print green("message")
color_16.go:240
Method
Print
Print render and Print text
style.go:62
Method
Print
Print print message
color_256.go:89
Method
Print
Print message
color_256.go:239
Method
Printf
Printf format and print messages
color_tag.go:548
Method
Printf
Printf format and print messages. Usage: color.Cyan.Printf("string %s", "arg0")
color_16.go:249
Method
Printf
Printf render and print text
style.go:67
Method
Printf
Printf format and print message
color_256.go:94
Method
Printf
Printf format and print message
color_256.go:244
Method
Println
Println messages line
color_tag.go:560
Method
Println
Println messages with new line
color_16.go:254
Method
Println
Println render and print text line
style.go:72
Method
Println
Println print message with newline
color_256.go:99
Method
Println
Println print message with newline
color_256.go:249
Function
RGBToHSVSlice
RGBToHSVSlice Convert RGB values to HSV values slice. r, g, b (0-255) => h (0-360), s (0-1.0), v (0-1.0)
convert.go:948
Function
Redf
Redf print message with Red color
quickstart.go:129
Function
Redln
Redln print message line with Red color
quickstart.go:132
Function
Redp
************************************************************* * region quick start *************************************************************/ Re
quickstart.go:126
Method
Render
Render messages by color setting Usage: green := color.FgGreen.Render fmt.Println(green("message"))
color_16.go:206
Method
Renderln
Renderln messages by color setting. like Println, will add spaces for each argument Usage: green := color.FgGreen.Renderln fmt.Println(green("mess
color_16.go:215
Method
Reset
Reset terminal. alias of the ResetTerminal()
color_256.go:86
Method
Save
Save to themes map
style.go:103
Method
Set
Set terminal by 256 color code
color_256.go:83
Method
Set
Set fg and bg color value, can also with color options
color_256.go:207
Method
SetBg
SetBg set bg color value
color_256.go:215
Method
SetFg
SetFg set fg color value
color_256.go:221
Method
SetOpts
SetOpts set options
color_256.go:227
Method
Sprint
Sprint render messages
color_tag.go:570
Method
Sprint
Sprint render messages by color setting. is alias of the Render()
color_16.go:218
Method
Sprint
Sprint is alias of the 'Render'
style.go:54
Method
Sprint
Sprint returns rendered message
color_256.go:104
Method
Sprint
Sprint returns rendered message
color_256.go:254
Method
Sprintf
Sprintf format and render messages
color_tag.go:575
Method
Sprintf
Sprintf format and render message. Usage: green := color.Green.Sprintf colored := green("message")
color_16.go:226
Method
Sprintf
Sprintf format and render message.
style.go:57
Method
Sprintf
Sprintf returns format and rendered message
color_256.go:107
Method
Sprintf
Sprintf returns format and rendered message
color_256.go:257
Function
TestApplyTag
(t *testing.T)
color_tag_test.go:236
Function
TestC256ToRgb
(t *testing.T)
utils_test.go:77
Function
TestC256ToRgbV1
(t *testing.T)
utils_test.go:62
Function
TestClearCode
(t *testing.T)
color_test.go:228
Function
TestClearTag
(t *testing.T)
color_tag_test.go:243
Function
TestColor16
************************************************************* * test 16 color *************************************************************/
color_test.go:284
Function
TestColor256_AsBg
(t *testing.T)
color_test.go:611
Function
TestColor256_Print
************************************************************* * test 256 color *************************************************************/
color_test.go:531
Function
TestColor256_conv
(t *testing.T)
color_test.go:592
Function
TestColor256_set_reset
(t *testing.T)
color_test.go:599
Function
TestColorPrint
(t *testing.T)
colorp/colorp_test.go:9
Function
TestColor_C256
(t *testing.T)
color_test.go:400
Function
TestColor_RGB
(t *testing.T)
color_test.go:420
Function
TestColor_check
(t *testing.T)
color_test.go:362
Function
TestColor_convert
(t *testing.T)
color_test.go:380
Function
TestDebugMode
(t *testing.T)
utils_test.go:37
Function
TestDetectColorLevel
(t *testing.T)
detect_test.go:9
Function
TestEnv_COLOR_DEBUG_MODE
(t *testing.T)
utils_test.go:164
Function
TestHSL
(t *testing.T)
color_rgb_test.go:278
Function
TestHex2basic
(t *testing.T)
convert_test.go:16
Function
TestHexToRGB
(t *testing.T)
color_rgb_test.go:108
Function
TestHexToRgb
(t *testing.T)
utils_test.go:92
Function
TestHslToRgb
(t *testing.T)
convert_test.go:21
Function
TestIsDetectColorLevel_screen
(t *testing.T)
detect_test.go:172
Function
TestIsDetectColorLevel_unix
(t *testing.T)
detect_test.go:41
Function
TestIsDetectColorLevel_win
(t *testing.T)
detect_test.go:254
Function
TestIssues_51
https://github.com/gookit/color/issues/51
issues_test.go:14
Function
TestIssues_52
https://github.com/gookit/color/issues/52
issues_test.go:33
Function
TestIssues_95
https://github.com/gookit/color/issues/95
issues_test.go:56
Function
TestNew
(t *testing.T)
style_test.go:9
Function
TestNewScheme
(t *testing.T)
style_test.go:220
Function
TestOpts_Add
(t *testing.T)
color_test.go:723
Function
TestParseCodeFromAttr_basic
(t *testing.T)
color_tag_test.go:99
Function
TestParseCodeFromAttr_c256
(t *testing.T)
color_tag_test.go:121
Function
TestParseCodeFromAttr_hex_rgb
(t *testing.T)
color_tag_test.go:134
← previous
next →
301–400 of 460, ranked by callers