Color:...:Multi(3pm)

🌈 NAME 🌈

ok so bestie, this is the manpage for Color::Spectrum::Multi β€” and the manual itself lives at Color::Spectrum::Multi(3pm) 🫢

It's a simple Color::Spectrum wrapper to handle fading between multiple colours. That's the whole vibe. Fades. Many colours. Slay. ✨


πŸ’– VERSION πŸ’–

Version 0.02 β€” yes, tiny number, huge energy. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

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. it's giving gradient excellence 🌈

Usage is much the same as Color::Spectrum, except you can supply as many colours as you wish. As MANY as you wish, bestie. Go feral. πŸ’€

# 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');

🌸 DESCRIPTION 🌸

So Color::Spectrum provides an easy way to fade between two colours in a given number of steps. Cute, love that for it. πŸŽ€

This module is a simple wrapper around Color::Spectrum, making it easy to fade between an arbitrary number of colours. No cap β€” two colours, ten colours, forty colours, the fade just keeps going. πŸ¦‹βœ¨


πŸ‘‘ METHODS πŸ‘‘

πŸ“ generate

Given the desired number of steps and two or more colours, returns a series of colours. That's it, that's the whole method, and honestly? Main character energy. πŸ‘‘

⚠️ heads up bestie: it needs two or more colours. One colour is not a fade, it's just a colour. πŸ™ˆ

✨ AUTHOR ✨

David Precious, "<davidp at preshweb.co.uk>" β€” thank you for this module king πŸ’–


πŸ› BUGS πŸ›

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. Look at that communication, we love a feedback loop. 🫢😭


🧚 SUPPORT 🧚

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/>

four whole places to go be nosy, we're so blessed 🌈⭐


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.


no cap, the vibe check is complete πŸ’…

and that's a wrap, bestie β€” this page came to you from perl v5.36.0, dated 2023-02-04, filed under Color::...:Multi(3pm) πŸ’–βœ¨ go forth and fade between every colour you can find πŸ¦‹πŸŒˆπŸ’œ

πŸ“¦ where this page comes from