Deprecated.
NAME
Color::Calc::html - DEPRECATED: Simple calculations with colors (output in html)
SYNOPSIS
use Color::Calc::html;
print color( 'green' ); # prints 'lime', not 'green'
print color( 'lime' ); # warns about an unknown color name
DESCRIPTION
This module is deprecated as it does not allow selecting the scheme of recognized color names, which defaults to Graphics::ColorNames::X and is incompatible with HTML's color names.
Yes, you've read correctly: This module does not recognize HTML color names correctly. See http://en.wikipedia.org/wiki/X11_color_names#Color%20names%20that%20clash%20between%20X11%20and%20HTML/CSS for color names that are different.
This module is nearly identical to using the following:
use Color::Calc('ColorScheme' => 'X', 'OutputFormat' => 'html');
However, this module also makes the functions available when not imported:
use Color::Calc::html(); # don't import
Color::Calc::html::color('F00');
AUTHOR
Claus Färber <CFAERBER@cpan.org>
LICENSE
Copyright © 2004-2009 Claus Färber.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.