Color::Spectrum::Multi(3pm) | User Contributed Perl Documentation | Color::Spectrum::Multi(3pm) |
Color::Spectrum::Multi - simple Color::Spectrum wrapper to handle fading between multiple colours.
Version 0.02
A simple wrapper around Color::Spectrum, to allow generating a range of colours fading between multiple colours (e.g. a red -> yellow -> green fade) easy.
Usage is much the same as Color::Spectrum, except you can supply as many colours as you wish.
# Procedural interface: use Color::Spectrum::Multi qw(generate); my @color = generate(10,'#FF0000','#00FF00', '#0000FF'); # OO interface: use Color::Spectrum::Multi; my $spectrum = Color::Spectrum::Multi->new(); my @color = $spectrum->generate(10,'#FF0000','#00FF00', '#0000FF');
Color::Spectrum provides an easy way to fade between two colours in a given number of steps. This module is a simple wrapper around Color::Spectrum, making it easy to fade between an arbitrary number of colours.
David Precious, "<davidp at preshweb.co.uk>"
Please report any bugs or feature requests to "bug-color-spectrum-multi at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Color-Spectrum-Multi>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
perldoc Color::Spectrum::Multi
You can also look for information at:
<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Color-Spectrum-Multi>
<http://annocpan.org/dist/Color-Spectrum-Multi>
<http://cpanratings.perl.org/d/Color-Spectrum-Multi>
<http://search.cpan.org/dist/Color-Spectrum-Multi/>
Copyright 2009 David Precious, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2023-02-04 | perl v5.36.0 |