Get the color for the logo at position (i, j)
(i, j int)
| 79 | |
| 80 | // Get the color for the logo at position (i, j) |
| 81 | func 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 | } |