Little terminal colorful block lib. Convert integer array to colorful block view.
View the docs.
$ go get github.com/doseeing/termblock
// Alphabet as first argument, 0 -> T, 1-> F
tb := termblock.New(`TF`)
tb.Print([]int{0,1,0,1,0,1}, "Basic Example: ")
// ANSI color code as second argument
tb := termblock.ColorNew(`TF`, []int{31,32})
tb.Print([]int{0,1,0,1,0,1}, "Color Example: ")
tb := termblock.ColorNew(`โ`, []int{31,32})
tb.Print([]int{0,1,0,1,0,1}, "Color Block Example: ")
MIT