The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

perl-term-colormap

ANSITerm 256 colormaps

Name

Term::Colormap - Colormaps for ANSI 256 Color Terminals!

Build Status Coverage Status CPAN version

Version

Version 0.17

Synopsis

Perl library providing colormaps and functions to simplify rendering colored text using ANSI 256 colors.

use Term::Colormap qw( colormap colorbar print_colored );

my $rainbow = colormap('rainbow');

colorbar($rainbow);

print_colored( $rainbow->[3], "orange" )';

Example Scripts

git-blame-summary - Summarize git commits

$ git clone git://perl5.git.perl.org/perl.git
$ cd perl
$ git-blame-summary run.c

alt text

hbar - Create horizontal bar graphs from the command line

$ echo '
  hello,-5
  world,-4
  bob,-3
  cat,-2
  foo,-1
  bar,0
  qux,1
  qix,5
  baz,20
' | hbar

alt text

$ echo '
  1  one
  1  one
  2  two
  5  five
  8  eight
  13 thirteen
  21 twenty one
 ' | hbar

alt text

Available Colormaps

alt text

alt text

alt text

alt text

alt text

alt text

alt text

Available Brewer Colormaps

See: perldoc Term::Colormap::Brewer