NAME

Image::Simple::Gradient - The great new Image::Simple::Gradient!

VERSION

Version 0.02

SYNOPSIS

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 $image = Image::Simple::Gradient->new({
    color_begin => 'FF0000', 
    color_end => '0000FF', 
    direction => 'up', 
    height => 100,
    width => 200,
    });
print $image->render_gradient();

EXPORT

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.

SUBROUTINES/METHODS

AUTHOR

Hernan Lopes, <hernanlopes at gmail.com>

BUGS

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.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Image::Simple::Gradient

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

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.