Graphics-ColorNames-WWW

 view release on metacpan or  search on metacpan

lib/Graphics/ColorNames/WWW.pm  view on Meta::CPAN

    'tomato'		=> _mk_rgb(255, 99, 71),
    'turquoise'		=> _mk_rgb( 64, 224, 208),
    'violet'		=> _mk_rgb(238, 130, 238),
    'wheat'		=> _mk_rgb(245, 222, 179),
    'white'		=> _mk_rgb(255, 255, 255),
    'whitesmoke'	=> _mk_rgb(245, 245, 245),
    'yellow'		=> _mk_rgb(255, 255, 0),
    'yellowgreen'	=> _mk_rgb(154, 205, 50),
  };
}

1;

=head1 NAME

Graphics::ColorNames::WWW - WWW color names and equivalent RGB values

=head1 SYNOPSIS

  require Graphics::ColorNames::WWW;

  $NameTable = Graphics::ColorNames::WWW->NamesRgbTable();
  $RgbBlack  = $NameTable->{black};

=head1 DESCRIPTION

This module defines color names and their associated RGB values from various
WWW specifications, such as SVG or CSS as well as common browser
implementations.

See the documentation of L<Graphics::ColorNames> for information how to use
this module.

Currently, SVG and CSS define the same color keywords and include all color
keywords supported by common web browsers. Therefore, the modules
Graphics::ColorNames::WWW, L<Graphics::ColorNames::SVG> and
L<Graphics::ColorNames::CSS> behave in identical ways. 

This may change if the specs should happen to diverge; then this module will
become a superset of all color keywords defined by W3C's specs.

It is recommended to use this module unless you require exact compatibility
with the CSS and SVG specifications or specific browsers.

=head2 NOTE

Reportedly "fuchsia" was misspelled "fuscia" in an unidentified HTML
specification. It also appears to be a common misspelling, so both names are
recognized.

=head1 LIMITATIONS

The C<transparent> keyword is unsupported. Currently, Graphics::ColorNames does
not allow RGBA values.

Further, the system color keywords are not assigned to a fixed RGB value and
thus unsupported: C<ActiveBorder>, C<ActiveCaption>, C<AppWorkspace>,
C<Background>, C<ButtonFace>, C<ButtonHighlight>, C<ButtonShadow>,
C<ButtonText>, C<CaptionText>, C<GrayText>, C<Highlight>, C<HighlightText>,
C<InactiveBorder>, C<InactiveCaption>, C<InactiveCaptionText>,
C<InfoBackground>, C<InfoText>, C<Menu>, C<MenuText>, C<Scrollbar>,
C<ThreeDDarkShadow>, C<ThreeDFace>, C<ThreeDHighlight>, C<ThreeDLightShadow>,
C<ThreeDShadow>, C<Window>, C<WindowFrame>, C<WindowText> (these are deprecated
in CSS3)

=head1 SEE ALSO

L<Graphics::ColorNames::HTML>, L<Graphics::ColorNames::CSS>,
L<Graphics::ColorNames::SVG>

=head1 AUTHOR

Claus FE<auml>rber <CFAERBER@cpan.org>

Based on C<Graphics::ColorNames::HTML> by Robert Rothenberg.

=head1 LICENSE

Copyright 2005-2009 Claus FE<auml>rber.

Copyright 2001-2004 Robert Rothenberg.

All rights reserved.  This program is free software; you can
redistribute it and/or modify it under the same terms as Perl
itself.

=cut



( run in 0.351 second using v1.01-cache-2.11-cpan-cdf2f3d4e48 )