Color::Spectrum::Multi - simple Color::Spectrum wrapper to handle fading between multiple colours.
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.
Given the desired number of steps and two or more colours, returns a series of colours.
<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.
You can also look for information at:
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.