filestash/vendor/github.com/aybabtme/rgbterm
Mickael Kerjean 3a63eb0777 feature (plg_image_ascii): image ascii transform
The idea here is to be able to use curl and have Filestash to render
image in a terminal friendly fashion
2022-09-06 22:27:12 +10:00
..
codes.go feature (plg_image_ascii): image ascii transform 2022-09-06 22:27:12 +10:00
interpret.go feature (plg_image_ascii): image ascii transform 2022-09-06 22:27:12 +10:00
LICENSE feature (plg_image_ascii): image ascii transform 2022-09-06 22:27:12 +10:00
README.md feature (plg_image_ascii): image ascii transform 2022-09-06 22:27:12 +10:00
rgbterm.go feature (plg_image_ascii): image ascii transform 2022-09-06 22:27:12 +10:00
util.go feature (plg_image_ascii): image ascii transform 2022-09-06 22:27:12 +10:00

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.