in internal/app/synapse/synapse.go [113:148]
func PrintWelcomeMessage() {
colors := []string{
"\033[31m", // Red
"\033[33m", // Yellow
"\033[32m", // Green
"\033[36m", // Cyan
"\033[34m", // Blue
"\033[35m", // Magenta
}
// ANSI code to reset color to default
reset := "\033[0m"
art := []string{
"",
" _/_/_/ ",
" _/ _/ _/ _/_/_/ _/_/_/ _/_/_/ _/_/_/ _/_/ ",
" _/_/ _/ _/ _/ _/ _/ _/ _/ _/ _/_/ _/_/_/_/ ",
" _/ _/ _/ _/ _/ _/ _/ _/ _/ _/_/ _/ ",
"_/_/_/ _/_/_/ _/ _/ _/_/_/ _/_/_/ _/_/_/ _/_/_/ ",
" _/ _/ ",
" _/_/ _/ ",
}
// Iterate over each line of the ASCII art
for _, line := range art {
// Iterate over each character in the line
for i, char := range line {
// Select color based on character position to create a gradient
color := colors[i%len(colors)]
// Print the colored character without adding a newline
fmt.Printf("%s%c", color, char)
}
// Reset color at the end of each line and add a newline
fmt.Println(reset)
}
}