INNER CODE UNIT · Go
color_banner
x90skysn3k/brutespray · banner/banner.go:12
func color_banner(text string) string {
source := rand.NewSource(time.Now().UnixNano())
random := rand.New(source)
startColor := pterm.NewRGB(uint8(random.Intn(256)), uint8(random.Intn(256)), uint8(random.Intn(256)))
firstPoint := pterm.NewRGB(uint8(random.Intn(256)), uint8(random.Intn(256)), uint8(random.Intn(256)))
//startColor := pterm.NewRGB(0, 255, 255)
//firstPoint := pterm.NewRGB(255, 0, 255)
str := text
strs := strings.Split(str, "")
var fadeInfo string
for i := 0; i < len(str); i++ {
if i < len(strs) {