func roll(time) { done := 0 for done < time { num := r.Strings(dice) fmt.Println(c.Rc() + num) } }
func ayylmao() { fmt.Println(c.Clear + c.Red + "Ayy..") time.Sleep(1000 * time.Millisecond) for { fmt.Print(c.Rc() + "LMAO" + " ") } }
func main() { x := 0 for x < 10000 { fmt.Print(c.Rc() + "meow" + c.X) x += 1 } fmt.Print(c.CL) }
func main() { fmt.Println(c.Clear + c.Multi("Welcome to the Magic Eightball")) for { promt := i.StringInput(c.Yellow + "What is your question > ") if promt == "love" { fmt.Println(c.Rc() + "I dont deal with peoples love lives") } else if promt == "death" { fmt.Println(c.Rc() + "You are morbid") } else { rand.Seed(42) answers := []string{ "It is certain", "It is decidedly so", "Without a doubt", "Yes definitely", "You may rely on it", "As I see it yes", "Most likely", "Outlook good", "Yes", "Signs point to yes", "Reply hazy try again", "Ask again later", "Better not tell you now", "Cannot predict now", "Concentrate and ask again", "Don't count on it", "My reply is no", "My sources say no", "Outlook not so good", "Very doubtful", } fmt.Println(c.Rc() + "Magic 8-Ball says:" + answers[rand.Intn(len(answers))]) } } }
func ColorTest() { fmt.Println(c.R + "Red" + c.X) fmt.Println(c.O + "Orange" + c.X) fmt.Println(c.Y + "Yellow" + c.X) fmt.Println(c.G + "Green" + c.X) fmt.Println(c.C + "Cyan" + c.X) fmt.Println(c.B + "Blue" + c.X) fmt.Println(c.M + "Magenta" + c.X) fmt.Println(c.V + "Violet" + c.X) fmt.Println(c.B0 + "Base 0" + c.X) fmt.Println(c.B00 + "Base 00" + c.X) fmt.Println(c.B1 + "Base 1" + c.X) fmt.Println(c.B01 + "Base 01" + c.X) fmt.Println(c.B2 + "Base 2" + c.X) fmt.Println(c.B02 + "Base 02" + c.X) fmt.Println(c.B3 + "Base 3" + c.X) fmt.Println(c.B03 + "Base 03" + c.X) fmt.Println(c.Multi("MultiColored") + c.X) fmt.Println(c.Rc() + "Random" + c.X) }
func PrintColor(message string) { for { fmt.Print(c.Rc() + message + " " + c.X) } }
func PrintForevah(message string) { //Prints "Hello World" in a random color forever in a loop. for { fmt.Print(c.Rc() + "Hello " + message + c.X) } }
func PrintRandom(message string) { //Prints "Hello World" to the command line in random color. fmt.Println(c.Clear + c.Rc() + "Hello " + message + c.X) }
func Color(message string) { for { fmt.Println(c.Rc() + message) } }
func plain(text string) { fmt.Println(c.Clear + c.Rc() + text + c.Reset) }
func color(message string) { fmt.Print(c.Clear) for { fmt.Print(c.Rc() + message + c.Reset) } }
func nyan(message string) { fmt.Print(c.Clear) for { fmt.Print(c.Rc() + message + " ") } }
func color(message string) { fmt.Println(c.Clear + c.Rc() + message) }
func PrintRandom(message string) { fmt.Println(c.Rc() + message + c.X) }
func FillScreen(message string) { for { fmt.Print(c.Rc() + message + " ") } }