MCPcopy
hub / github.com/derailed/k9s / Color

Method Color

internal/config/color.go:72–78  ·  view source on GitHub ↗

Color returns a view color.

()

Source from the content-addressed store, hash-verified

70
71// Color returns a view color.
72func (c Color) Color() tcell.Color {
73 if c == DefaultColor {
74 return tcell.ColorDefault
75 }
76
77 return tcell.GetColor(string(c)).TrueColor()
78}
79
80// maxChromaForLH finds the maximum chroma at a given lightness and hue
81// that stays within the sRGB gamut using binary search.

Callers 15

StringMethod · 0.95
InvertColorMethod · 0.95
TestColorToColorFunction · 0.95
InitMethod · 0.80
updateStyleMethod · 0.80
titleCellMethod · 0.80
ShowDrainFunction · 0.80
InitMethod · 0.80
TreeNodeSelectedMethod · 0.80
makeTreeNodeFunction · 0.80
StylesChangedMethod · 0.80
StylesChangedMethod · 0.80

Calls

no outgoing calls

Tested by 4

TestColorToColorFunction · 0.76
TestPromptColorFunction · 0.64
TestPromptStyleChangedFunction · 0.64
TestColorFunction · 0.64