mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-30 20:32:49 +01:00
The idea here is to be able to use curl and have Filestash to render image in a terminal friendly fashion |
||
|---|---|---|
| .. | ||
| codes.go | ||
| interpret.go | ||
| LICENSE | ||
| README.md | ||
| rgbterm.go | ||
| util.go | ||
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.
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!")
Also, to be correct: there are 216 colors and 16 grey scales. For more details, Xterm.

