Image::Simple::Gradient create simple gradients for your perl web / software application.
Version 0.05
Create simple gradient images with this module. If you are looking for a way to render a gradient image going from one color to another color, this is the module for it. Its useful when your designer needs an easy simple way to generate gradient colors for a webpage or application software.
direction can be: up, down, left, right. height and width: in pixels. color_begin and color_end are rgb hex values with 6 digits. ex: FF0000
use Image::Simple::Gradient; my $im = Image::Simple::Gradient->new({ color_begin => 'FF0000', color_end => '0000FF', direction => 'up', height => 100, width => 200, }); my $im = $image->render_gradient(); if (open FH, "> my_gradient.jpg") { binmode FH; my $IO = fileno(FH); print FH $im, $filename; }
A list of functions that can be exported. You can delete this section if you don't export anything, such as for a purely object-oriented module.
A hash reference must be passed on construction.
Follow the example:
my $image = Image::Simple::Gradient->new({ color_begin => 'FF0000', color_end => '0000FF', direction => 'up', height => 100, width => 200, });
Renders the image and returns a jpg. ie:
my $im = $image->render_gradient();
Hernan Lopes, <hernanlopes at gmail.com>
<hernanlopes at gmail.com>
Michal Guerquin, <michalg at gmail.com>
<michalg at gmail.com>
Please report any bugs or feature requests to bug-image-simple-gradient at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Image-Simple-Gradient. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-image-simple-gradient at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Image::Simple::Gradient
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Image-Simple-Gradient
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Image-Simple-Gradient
CPAN Ratings
http://cpanratings.perl.org/d/Image-Simple-Gradient
Search CPAN
http://search.cpan.org/dist/Image-Simple-Gradient/
Copyright 2010 Hernan Lopes.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
1 POD Error
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head1'
To install Image::Simple::Gradient, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Image::Simple::Gradient
CPAN shell
perl -MCPAN -e shell install Image::Simple::Gradient
For more information on module installation, please visit the detailed CPAN module installation guide.