Color::Calc::WWW3pm
Simple calculations with colors for the www.
Usage
use Color::Calc::WWW;my $background = 'green';print 'background: ', color($background),';';print 'border-top: solid 1px ', color_light($background),';';print 'border-bottom: solid 1px ', color_dark($background),';';print 'color: ', color_contrast_bw($background),';';
Overview
The "Color::Calc::WWW" module implements simple calculations with RGB colors for the World Wide Web. This can be used to create a full color scheme from a few colors.
This module is nearly identical to using the following:
use Color::Calc('ColorScheme' => 'WWW', 'OutputFormat' => 'html');
However, this module also makes the functions available when not imported:
use Color::Calc::WWW(); # don't importColor::Calc::WWW::color('F00');
Usage
By default, all functions are imported.
All functions recognize all HTML color keywords (through Graphics::ColorNames::WWW) and output the results in WWW-compatible formats, i.e. as one of the 16 basic HTML keywords (see Graphics::ColorNames::WWW) or as #RRGGBB.
- color, color_mix, ...
-
See L<Color::Calc> for a list of available calculation functions.
Note
Releases
7 releases since Debian 6.0 (Squeeze); the text changed 5 times.