Claus Färber > Color-Calc > Color::Calc::WWW

Download:
Color-Calc-1.05.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 1.05   Source  

Color::Calc::WWW - Simple calculations with colors for the WWW.

SYNOPSIS ^

  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),';';

DESCRIPTION ^

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.

FUNCTIONS ^

color_*($input)
  See L<Color::Calc> for a list of available calculation functions.
color($input)
  Shorthand for C<color_get>.

AUTHOR/LICENSE ^

Copyright © 2004-2008 Claus Färber <CFAERBER@cpan.org>

This module is free software; you can redistribute it and/or modify it under the terms of either the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or the "Artistic License".

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.