NAME

Color::Spectrum - Generate spectrums of web colors

SYNOPSIS

# Procedural interface:
use Color::Spectrum qw(generate);
my @color = generate(10,'#000000','#FFFFFF');

# OO interface:
use Color::Spectrum;
my $spectrum = Color::Spectrum->new();
my @color = $spectrum->generate(10,'#000000','#FFFFFF');

DESCRIPTION

This is a rewrite of a script I wrote 4 years ago to make spectrums of colors for web page table tags. It uses a real simple geometric conversion that gets the job done.

It can shade from dark to light, from saturated to dull, and around the spectrum all at the same time. It can go thru the spectrum in either direction.

METHODS

generate
# Procedural interface:
@list = generate($elements,$start_color,$end_color);

# OO interface:
@list = $spectrum->generate($elements,$start_color,$end_color);

This method returns a list of size $elements which contains web colors starting from $start_color and ranging to $end_color.

AUTHOR

Mark Mills <extremely@hostile.org>

MAINTAINANCE

This package is maintained by Jeffrey Hayes Anderson <captvanhalen@yahoo.com>

COPYRIGHT

Copyright (c) 2003 Mark Mills.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 144:

You forgot a '=back' before '=head1'