Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

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

About

bash

Resources

Packages

No packages published

Languages