MCPcopy
hub / github.com/keploy/keploy / getLogoColor

Function getLogoColor

cli/provider/util.go:81–101  ·  view source on GitHub ↗

Get the color for the logo at position (i, j)

(i, j int)

Source from the content-addressed store, hash-verified

79
80// Get the color for the logo at position (i, j)
81func getLogoColor(i, j int) string {
82 gradientColors := []string{
83 "\033[38;5;202m", // Dark Orange
84 "\033[38;5;208m",
85 "\033[38;5;214m", // Light Orange
86 "\033[38;5;226m", // Light Yellow
87 }
88
89 switch {
90 case i <= 5:
91 return gradientColors[0]
92 case i == 6 && j <= 42:
93 return gradientColors[1]
94 case i == 7 && j <= 49:
95 return gradientColors[2]
96 case j <= 38:
97 return gradientColors[3]
98 default:
99 return gradientColors[0]
100 }
101}

Callers 1

printKeployLogoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected