SHARYANTO::ColorTheme::Util(3pm)

SHARYANTO::ColorTheme::Util3pm

Utility routines

Version

version 0.67

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 SHARYANTO::ColorTheme::Util 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);

Homepage

Please visit the project's homepage at <https://metacpan.org/release/SHARYANTO-Utils>.

Source

Source repository is at <https://github.com/sharyanto/perl-SHARYANTO-Utils>.

Bugs

Please report any bugs or feature requests on the bugtracker website <https://rt.cpan.org/Public/Dist/Display.html?Name=SHARYANTO-Utils>

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

Author

Steven Haryanto <[email protected]>

From libsharyanto-utils-perl 0.67-1 in Debian 8 (Jessie). Parsed by carta from the page's man source.