Created
September 2, 2016 02:26
-
-
Save chew-z/cbb61e085c95b6b9cdacd629cce50ac6 to your computer and use it in GitHub Desktop.
Color converter HEX to term256
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use feature qw(say); | |
use Color::ANSI::Util qw( | |
rgb_to_ansi256 | |
); | |
say "Throw me hex# and I will throw back ansi 256 color"; | |
while (<>) { | |
# print $_; | |
say rgb_to_ansi256($_); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment