MCPcopy Create free account

hub / github.com/gookit/color / functions

Functions460 in github.com/gookit/color

FunctionBlueln
Blueln print message line with Blue color
quickstart.go:141
FunctionBluep
Bluep print message with Blue color
quickstart.go:135
MethodC16
C16 convert color-256 to 16 color.
color_256.go:112
MethodC256
IsValid value func (c RGBColor) IsValid() bool { return c[3] <= AsBg } C256 returns the closest approximate 256 (8 bit) color
color_rgb.go:258
MethodCode
Code convert to color code string. eg: "12"
color_256.go:129
FunctionCyanf
Cyanf print message with Cyan color
quickstart.go:147
FunctionCyanln
Cyanln print message line with Cyan color
quickstart.go:150
FunctionCyanp
Cyanp print message with Cyan color
quickstart.go:144
FunctionExample
()
color_test.go:15
MethodFullCode
FullCode convert to color code string with prefix. eg: "38;5;12"
color_256.go:132
FunctionGrayf
Grayf print message with Gray color
quickstart.go:156
FunctionGrayln
Grayln print message line with Gray color
quickstart.go:159
FunctionGrayp
Grayp print message with Gray color
quickstart.go:153
FunctionGreenf
Greenf print message with Green color
quickstart.go:165
FunctionGreenln
Greenln print message line with Green color
quickstart.go:168
FunctionGreenp
Greenp print message with Green color
quickstart.go:162
MethodInfo
Info log message
_examples/ref/idea.go:24
MethodIsBg
IsBg color
color_256.go:156
MethodIsEmpty
IsEmpty value
color_256.go:165
MethodIsFg
IsFg color
color_256.go:147
FunctionIsTerminal
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
FunctionIsTty
renderColorCodeOnCmd enable cmd color render. func renderColorCodeOnCmd(fn func()) { err := EnableVirtualTerminalProcessing(syscall.Stdout, true) //
detect_windows.go:221
MethodIsValid
IsValid color value
color_16.go:364
FunctionMagentaf
Magentaf print message with Magenta color
quickstart.go:183
FunctionMagentaln
Magentaln print message line with Magenta color
quickstart.go:186
FunctionMagentap
Magentap print message with Magenta color
quickstart.go:180
FunctionNewLog
(fields map[string]string)
_examples/ref/idea.go:19
MethodPrint
Print messages
color_tag.go:536
MethodPrint
Print messages. Usage: color.Green.Print("message") OR: green := color.FgGreen.Print green("message")
color_16.go:240
MethodPrint
Print render and Print text
style.go:62
MethodPrint
Print print message
color_256.go:89
MethodPrint
Print message
color_256.go:239
MethodPrintf
Printf format and print messages
color_tag.go:548
MethodPrintf
Printf format and print messages. Usage: color.Cyan.Printf("string %s", "arg0")
color_16.go:249
MethodPrintf
Printf render and print text
style.go:67
MethodPrintf
Printf format and print message
color_256.go:94
MethodPrintf
Printf format and print message
color_256.go:244
MethodPrintln
Println messages line
color_tag.go:560
MethodPrintln
Println messages with new line
color_16.go:254
MethodPrintln
Println render and print text line
style.go:72
MethodPrintln
Println print message with newline
color_256.go:99
MethodPrintln
Println print message with newline
color_256.go:249
FunctionRGBToHSVSlice
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
FunctionRedf
Redf print message with Red color
quickstart.go:129
FunctionRedln
Redln print message line with Red color
quickstart.go:132
FunctionRedp
************************************************************* * region quick start *************************************************************/ Re
quickstart.go:126
MethodRender
Render messages by color setting Usage: green := color.FgGreen.Render fmt.Println(green("message"))
color_16.go:206
MethodRenderln
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
MethodReset
Reset terminal. alias of the ResetTerminal()
color_256.go:86
MethodSave
Save to themes map
style.go:103
MethodSet
Set terminal by 256 color code
color_256.go:83
MethodSet
Set fg and bg color value, can also with color options
color_256.go:207
MethodSetBg
SetBg set bg color value
color_256.go:215
MethodSetFg
SetFg set fg color value
color_256.go:221
MethodSetOpts
SetOpts set options
color_256.go:227
MethodSprint
Sprint render messages
color_tag.go:570
MethodSprint
Sprint render messages by color setting. is alias of the Render()
color_16.go:218
MethodSprint
Sprint is alias of the 'Render'
style.go:54
MethodSprint
Sprint returns rendered message
color_256.go:104
MethodSprint
Sprint returns rendered message
color_256.go:254
MethodSprintf
Sprintf format and render messages
color_tag.go:575
MethodSprintf
Sprintf format and render message. Usage: green := color.Green.Sprintf colored := green("message")
color_16.go:226
MethodSprintf
Sprintf format and render message.
style.go:57
MethodSprintf
Sprintf returns format and rendered message
color_256.go:107
MethodSprintf
Sprintf returns format and rendered message
color_256.go:257
FunctionTestApplyTag
(t *testing.T)
color_tag_test.go:236
FunctionTestC256ToRgb
(t *testing.T)
utils_test.go:77
FunctionTestC256ToRgbV1
(t *testing.T)
utils_test.go:62
FunctionTestClearCode
(t *testing.T)
color_test.go:228
FunctionTestClearTag
(t *testing.T)
color_tag_test.go:243
FunctionTestColor16
************************************************************* * test 16 color *************************************************************/
color_test.go:284
FunctionTestColor256_AsBg
(t *testing.T)
color_test.go:611
FunctionTestColor256_Print
************************************************************* * test 256 color *************************************************************/
color_test.go:531
FunctionTestColor256_conv
(t *testing.T)
color_test.go:592
FunctionTestColor256_set_reset
(t *testing.T)
color_test.go:599
FunctionTestColorPrint
(t *testing.T)
colorp/colorp_test.go:9
FunctionTestColor_C256
(t *testing.T)
color_test.go:400
FunctionTestColor_RGB
(t *testing.T)
color_test.go:420
FunctionTestColor_check
(t *testing.T)
color_test.go:362
FunctionTestColor_convert
(t *testing.T)
color_test.go:380
FunctionTestDebugMode
(t *testing.T)
utils_test.go:37
FunctionTestDetectColorLevel
(t *testing.T)
detect_test.go:9
FunctionTestEnv_COLOR_DEBUG_MODE
(t *testing.T)
utils_test.go:164
FunctionTestHSL
(t *testing.T)
color_rgb_test.go:278
FunctionTestHex2basic
(t *testing.T)
convert_test.go:16
FunctionTestHexToRGB
(t *testing.T)
color_rgb_test.go:108
FunctionTestHexToRgb
(t *testing.T)
utils_test.go:92
FunctionTestHslToRgb
(t *testing.T)
convert_test.go:21
FunctionTestIsDetectColorLevel_screen
(t *testing.T)
detect_test.go:172
FunctionTestIsDetectColorLevel_unix
(t *testing.T)
detect_test.go:41
FunctionTestIsDetectColorLevel_win
(t *testing.T)
detect_test.go:254
FunctionTestIssues_51
https://github.com/gookit/color/issues/51
issues_test.go:14
FunctionTestIssues_52
https://github.com/gookit/color/issues/52
issues_test.go:33
FunctionTestIssues_95
https://github.com/gookit/color/issues/95
issues_test.go:56
FunctionTestNew
(t *testing.T)
style_test.go:9
FunctionTestNewScheme
(t *testing.T)
style_test.go:220
FunctionTestOpts_Add
(t *testing.T)
color_test.go:723
FunctionTestParseCodeFromAttr_basic
(t *testing.T)
color_tag_test.go:99
FunctionTestParseCodeFromAttr_c256
(t *testing.T)
color_tag_test.go:121
FunctionTestParseCodeFromAttr_hex_rgb
(t *testing.T)
color_tag_test.go:134
← previousnext →301–400 of 460, ranked by callers