art.go (1020B)
1 package main 2 3 import "strings" 4 5 func base(baseType int) string { 6 var out strings.Builder 7 8 switch baseType { 9 case 1: 10 gray.Bold(true) 11 green.Bold(true) 12 bright_cyan.Bold(true) 13 14 out.WriteString(gray.Render(":")) 15 out.WriteString(green.Render("___________")) 16 out.WriteString(bright_cyan.Render("./~~~\\.")) 17 out.WriteString(green.Render("___________")) 18 out.WriteString(gray.Render(":") + "\n") 19 20 out.WriteString(gray.Render("\\ /") + "\n") 21 out.WriteString(gray.Render("\\_________________________/") + "\n") 22 out.WriteString(gray.Render("(_) (_)")) 23 24 gray.UnsetBold() 25 green.UnsetBold() 26 bright_cyan.UnsetBold() 27 case 2: 28 out.WriteString(gray.Render("(")) 29 out.WriteString(green.Render("---")) 30 out.WriteString(bright_cyan.Render("./~~~\\.")) 31 out.WriteString(green.Render("---")) 32 out.WriteString(gray.Render(")") + "\n") 33 out.WriteString(gray.Render("( )") + "\n") 34 out.WriteString(gray.Render("(_________)")) 35 } 36 37 return out.String() 38 }