示例#1
0
func (s *Passwordcard) print() {
	s.exchange()
	for i := 1; i < 10; i++ {
		fmt.Print(i)
		for d := 0; d < 29; d++ {
			if i == 1 || i == 2 {
				fmt.Print(golor.Colorize(" "+s.mixed[d], -1, golor.GREEN))
			}
			if i == 3 || i == 4 {
				fmt.Print(golor.Colorize(" "+s.mixed[d], -1, golor.MAGENTA))
			}
			if i == 5 || i == 6 {
				fmt.Print(golor.Colorize(" "+s.mixed[d], -1, golor.YELLOW))
			}
			if i == 7 || i == 8 {
				fmt.Print(golor.Colorize(" "+s.mixed[d], -1, golor.RED))
			}
			if i == 9 {
				fmt.Print(golor.Colorize(" "+s.mixed[d], -1, golor.CYAN))
			}
		}
		s.KartNo += s.kart_mixed[6]
		fmt.Println()
		s.exchange()
	}
}
示例#2
0
func main() {
	var s Passwordcard
	symbols := "  ■ □ ▲ △ ○ ● ★ ☂ ☀ ☁ ☹ ☺ ♠ ♣ ♥ ♦ ♫ € ¥ £ $ ! ? ¡ ¿ ⊙ ◐ ◩ �"
	fmt.Println(golor.Colorize(symbols, -1, golor.WHITE))

	s.initialize()
	s.print()
	fmt.Println("\t\t Kart Numarası :", s.KartNo)
}
示例#3
0
文件: colors.go 项目: Ezey/golor
func main() {
	fmt.Println("# Printing 16 colors ...")
	fmt.Println(golor.Colorize("GRAY", golor.GRAY, -1))
	fmt.Println(golor.Colorize("RED", golor.R, -1))
	fmt.Println(golor.Colorize("GREEN", golor.G, -1))
	fmt.Println(golor.Colorize("BLUE", golor.BLUE, -1))
	fmt.Println(golor.Colorize("MAGENTA", golor.M, -1))
	fmt.Println(golor.Colorize("YELLOW", golor.Y, -1))
	fmt.Println(golor.Colorize("CYAN", golor.C, -1))
	fmt.Println(golor.Colorize("BLACK", golor.BLACK, golor.WHITE))
	fmt.Println(golor.Colorize("WHITE", golor.WHITE, -1))
	fmt.Println(golor.Colorize("LOWEST", golor.RGB(0, 0, 0), golor.WHITE))
	fmt.Println(golor.Colorize("HIGHEST", golor.RGB(5, 5, 5), -1))
	// fmt.Println(golor.Colorize("TEST", 16, -1))
	fmt.Println("# Now printing 256 colors ...")
	time.Sleep(time.Second)
	for i := 255; i >= 0; i-- {
		fmt.Println(golor.Colorize("Foreground", i, -1))
		fmt.Println(golor.Colorize("Background", -1, i))
	}
}
示例#4
0
文件: unique.go 项目: Ezey/golor
func main() {
	fmt.Println("# Consistently assigning unique colors to strings:")
	for _, ape := range getScientificApes() {
		fmt.Println(golor.Colorize(ape, golor.AssignColor(ape), -1))
	}
}