DOKK / manpages / debian 12 / libcolor-spectrum-multi-perl / Color::Spectrum::Multi.3pm.en
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.

Given the desired number of steps and two or more colours, returns a series 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:

  • RT: CPAN's request tracker

    <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Color-Spectrum-Multi>

  • AnnoCPAN: Annotated CPAN documentation

    <http://annocpan.org/dist/Color-Spectrum-Multi>

  • CPAN Ratings

    <http://cpanratings.perl.org/d/Color-Spectrum-Multi>

  • Search CPAN

    <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