Debian Codegraph @

/

debian golang-github-aybabtme-rgbterm 0.0~git20170906.cc83f3b-2debian golang-github-aybabtme-rgbterm-dev debiangogoinimakefilemarkdownshellyaml 20 files · 47 symbols
README (full)

RGB terminal

Have you had enough of the same 16 colors in your terminal?

Welcome to a new world. A new world where colors are plentyful. A world in 256 colors.

so many colors!

Usage

// pick a color
var r, g, b uint8
r, g, b = 252, 255, 43
// choose a word
word := "=)"
// colorize it!
coloredWord := rgbterm.FgString(word, r, g, b)
// print it!
fmt.Println("Oh!", coloredWord, "hello!")

screen shot 2014-07-13 at 0 56 44

Also, to be correct: there are 216 colors and 16 grey scales. For more details, Xterm.

dir debian/
dir rainbow/
file LICENSE
file README.md
file codes.go
file interpret.go
file interpret_test.go
file rgbterm.go
file rgbterm_test.go
file util.go