NAME
Template::Plugin::Color - Template plugin for color manipulation
SYNOPSIS
# long or short hex triplets, with or without '#'
[% USE Color('abc') %]
[% USE Color('#abc') %]
[% USE Color('ff0000') %]
[% USE Color('#ff0000') %]
# decimal r, g, b values
[% USE Color(255, 128, 0) %]
# named parameters
[% USE Color( red=255, green=128, blue=0 ) %]
[% USE Color( hue=30, saturation=255, value=255 ) %]
# explicit colour space
[% USE Color( rgb = [255, 128, 00] ) %]
[% USE Color( hsv = [30, 255, 255] ) %]
# alternately, call Color methods
[% USE Color;
# create RGB colours
red = Color.RGB('#c00');
green = Color.RGB('#0c0');
blue = Color.RGB('#00c');
# create HSV colours
orange = Color.HSV(30, 255, 255);
%]
DESCRIPTION
The Template::Plugin::Color module allows you to define and manipulate colours using the RGB (red, green, blue) and HSV (hue, saturation, value) colour spaces.
It is implemented as a subclass of Template::Plugin::Colour (note the spelling difference) and is provided as a convenience for Americans and other international users who spell 'Colour' as 'Color'.
Please see the documentation for Template::Plugin::Colour for further details. Wherever you see 'Colour', you can safely write it as 'Color'.
AUTHOR
Andy Wardley <abw@cpan.org>
VERSION
$Revision: 6 $
COPYRIGHT
Copyright (C) 2006 Andy Wardley. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.