SHARYANTO::ColorTheme::Util - Utility routines
This document describes version 0.75 of SHARYANTO::ColorTheme::Util (from Perl distribution SHARYANTO-Utils), released on 2014-06-26.
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:
$func
$basect
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);
SHARYANTO
For more information about color themes, see SHARYANTO::Role::ColorTheme.
Please visit the project's homepage at https://metacpan.org/release/SHARYANTO-Utils.
Source repository is at https://github.com/sharyanto/perl-SHARYANTO-Utils.
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.
Steven Haryanto <stevenharyanto@gmail.com>
This software is copyright (c) 2014 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.
To install SHARYANTO::Utils, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SHARYANTO::Utils
CPAN shell
perl -MCPAN -e shell install SHARYANTO::Utils
For more information on module installation, please visit the detailed CPAN module installation guide.