NAME
Text::ANSITable::ColorThemeUtil - Utility routines
VERSION
version 0.19
FUNCTIONS
create_color_theme_transform($basect, $func) => HASH
Create a new color theme by applying transform function $func
(code) to base theme $basect
(hash). For example if you want to create a reddish color theme from the default theme:
use Text::ANSITable;
use SHARYANTO::Color::Util qw(mix_2_rgb_colors);
use Text::ANSITable::ColorThemeUtil qw(create_color_theme_transform);
my $basect = Text::ANSITable->get_color_theme("Default::default_gradation");
my $redct = create_color_theme_transform($basect, sub { mix_2_rgb_colors(shift, 'ff0000') });
# use the color theme
my $t = Text::ANSITable->new;
$t->color_theme($redct);
None are exported by default, but they are exportable.
AUTHOR
Steven Haryanto <stevenharyanto@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by Steven Haryanto.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.