Color::Calc::pdf - DEPRECATED: Simple calculations with colors (output for PDF::API2)
use Color::Calc::pdf; print color( 'pink' ); # prints '#ffc0cb'
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.
This module is nearly identical to using the following:
use Color::Calc('ColorScheme' => 'X', 'OutputFormat' => 'pdf');
However, this module also makes the functions available when not imported:
use Color::Calc::pdf(); # don't import Color::Calc::pdf::color('F00');
Claus Färber <CFAERBER@cpan.org>
Copyright 2004-2010 Claus Färber.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Color::Calc::hex, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Color::Calc::hex
CPAN shell
perl -MCPAN -e shell install Color::Calc::hex
For more information on module installation, please visit the detailed CPAN module installation guide.