1Graphics::ColorNames::WUWsWe(r3)Contributed Perl DocumenGtraatpihoincs::ColorNames::WWW(3)
2
3
4
6 Graphics::ColorNames::WWW - WWW color names and equivalent RGB values
7
9 require Graphics::ColorNames::WWW;
10
11 $NameTable = Graphics::ColorNames::WWW->NamesRgbTable();
12 $RgbBlack = $NameTable->{black};
13
15 This module defines color names and their associated RGB values from
16 various WWW specifications, such as SVG or CSS as well as common
17 browser implementations.
18
19 See the documentation of Graphics::ColorNames for information how to
20 use this module.
21
22 Currently, SVG and CSS define the same color keywords and include all
23 color keywords supported by common web browsers. Therefore, the modules
24 Graphics::ColorNames::WWW, Graphics::ColorNames::SVG and
25 Graphics::ColorNames::CSS behave in identical ways.
26
27 This may change if the specs should happen to diverge; then this module
28 will become a superset of all color keywords defined by W3C's specs.
29
30 It is recommended to use this module unless you require exact
31 compatibility with the CSS and SVG specifications or specific browsers.
32
33 NOTE
34 Reportedly "fuchsia" was misspelled "fuscia" in an unidentified HTML
35 specification. It also appears to be a common misspelling, so both
36 names are recognized.
37
39 The "transparent" keyword is unsupported. Currently,
40 Graphics::ColorNames does not allow RGBA values.
41
42 Further, the system color keywords are not assigned to a fixed RGB
43 value and thus unsupported: "ActiveBorder", "ActiveCaption",
44 "AppWorkspace", "Background", "ButtonFace", "ButtonHighlight",
45 "ButtonShadow", "ButtonText", "CaptionText", "GrayText", "Highlight",
46 "HighlightText", "InactiveBorder", "InactiveCaption",
47 "InactiveCaptionText", "InfoBackground", "InfoText", "Menu",
48 "MenuText", "Scrollbar", "ThreeDDarkShadow", "ThreeDFace",
49 "ThreeDHighlight", "ThreeDLightShadow", "ThreeDShadow", "Window",
50 "WindowFrame", "WindowText" (these are deprecated in CSS3)
51
53 Graphics::ColorNames::HTML, Graphics::ColorNames::CSS,
54 Graphics::ColorNames::SVG
55
57 Claus Färber <CFAERBER@cpan.org>
58
59 Based on "Graphics::ColorNames::HTML" by Robert Rothenberg.
60
62 Copyright 2005-2009 Claus Färber.
63
64 Copyright 2001-2004 Robert Rothenberg.
65
66 All rights reserved. This program is free software; you can
67 redistribute it and/or modify it under the same terms as Perl itself.
68
69
70
71perl v5.32.1 2021-01-27 Graphics::ColorNames::WWW(3)