bash
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.MD
rgb2true

README.MD

README

rgb2true accepts up to three space separated integers that fall in the range [0,255]. It will return a printf argument ready to use.

Example

./rgb2true 255 0 255

Returns the following:

\x1b[38;2;255;0;255mTRUECOLOR\x1b[0m
printf "\x1b[38;2;255;0;255m%s\x1b[0m\n" "example text"

Acknowledgements

v0.0.2: /u/-BruXy- of Reddit for helpful tips on error redirection and streamlining code.

TO-DO

  • interpret hex color input
  • make bpkg compatible
  • accept string to colorize

References