Graphics-ColorNames-WWW-1.13000755000765000024 011313131300 15737 5ustar00cfaerberstaff000000000000Build.PL000444000765000024 107011313131276 17323 0ustar00cfaerberstaff000000000000Graphics-ColorNames-WWW-1.13#!/usr/bin/perl use 5.006; use strict; use Module::Build; my $b = Module::Build->new( 'module_name' => 'Graphics::ColorNames::WWW', 'license' => 'perl', 'sign' => 1, 'create_license' => 1, 'create_makefile_pl' => 'traditional', 'requires' => { 'Graphics::ColorNames' => 0.32, }, 'build_requires' => { 'Test::More' => 0, 'Test::NoWarnings' => 0, }, 'resources' => { 'homepage' => 'http://search.cpan.org/dist/Graphics-ColorNames-WWW', 'repository' => 'http://github.com/cfaerber/Graphics-ColorNames-WWW', }, ); $b->create_build_script; Changes000444000765000024 131211313131276 17321 0ustar00cfaerberstaff000000000000Graphics-ColorNames-WWW-1.13Revision history for Perl extension Graphics::ColorNames::WWW 1.13 Sat Dec 19 00:00:00 2009 - better documentation - fix FAIL in t/11pod_cover.t 1.12 Thu Dec 17 00:00:00 2009 - only use ASCII in POD, fixes FAILs with perl 5.6.x - add examples in eg/ - FIX: #52870 Depending on itself (reported by ANDK) 1.11 Tue Dec 14 00:00:00 2009 - switch to Module::Build - fixes FAILures during make test 1.10 Fri Dec 11 00:00:00 2009 - added Graphics::ColorNames::CSS - re-organisation and cleanup - updated Makefile.PL - added LICENSE, SIGNATURE - use Test::More and Test::NoWarnings - move to Github 1.00 Fri Sep 12 00:00:00 2008 - cleanup 0.01 Sat Nov 26 00:00:00 2005 - first public release LICENSE000444000765000024 4363211313131276 17066 0ustar00cfaerberstaff000000000000Graphics-ColorNames-WWW-1.13This software is copyright (c) 2009 by Claus FErber . This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Terms of the Perl programming language system itself a) the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or b) the "Artistic License" --- The GNU General Public License, Version 1, February 1989 --- This software is Copyright (c) 2009 by Claus FErber . This is free software, licensed under: The GNU General Public License, Version 1, February 1989 GNU GENERAL PUBLIC LICENSE Version 1, February 1989 Copyright (C) 1989 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The license agreements of most software companies try to keep users at the mercy of those companies. By contrast, our General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. The General Public License applies to the Free Software Foundation's software and to any other program whose authors commit to using it. You can use it for your programs, too. When we speak of free software, we are referring to freedom, not price. Specifically, the General Public License is designed to make sure that you have the freedom to give away or sell copies of free software, that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of a such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must tell them their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any work containing the Program or a portion of it, either verbatim or with modifications. Each licensee is addressed as "you". 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this General Public License and to the absence of any warranty; and give any other recipients of the Program a copy of this General Public License along with the Program. You may charge a fee for the physical act of transferring a copy. 2. You may modify your copy or copies of the Program or any portion of it, and copy and distribute such modifications under the terms of Paragraph 1 above, provided that you also do the following: a) cause the modified files to carry prominent notices stating that you changed the files and the date of any change; and b) cause the whole of any work that you distribute or publish, that in whole or in part contains the Program or any part thereof, either with or without modifications, to be licensed at no charge to all third parties under the terms of this General Public License (except that you may choose to grant warranty protection to some or all third parties, at your option). c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the simplest and most usual way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this General Public License. d) You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. Mere aggregation of another independent work with the Program (or its derivative) on a volume of a storage or distribution medium does not bring the other work under the scope of these terms. 3. You may copy and distribute the Program (or a portion or derivative of it, under Paragraph 2) in object code or executable form under the terms of Paragraphs 1 and 2 above provided that you also do one of the following: a) accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Paragraphs 1 and 2 above; or, b) accompany it with a written offer, valid for at least three years, to give any third party free (except for a nominal charge for the cost of distribution) a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Paragraphs 1 and 2 above; or, c) accompany it with the information you received as to where the corresponding source code may be obtained. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form alone.) Source code for a work means the preferred form of the work for making modifications to it. For an executable file, complete source code means all the source code for all modules it contains; but, as a special exception, it need not include source code for modules which are standard libraries that accompany the operating system on which the executable file runs, or for standard header files or definitions files that accompany that operating system. 4. You may not copy, modify, sublicense, distribute or transfer the Program except as expressly provided under this General Public License. Any attempt otherwise to copy, modify, sublicense, distribute or transfer the Program is void, and will automatically terminate your rights to use the Program under this License. However, parties who have received copies, or rights to use copies, from you under this General Public License will not have their licenses terminated so long as such parties remain in full compliance. 5. By copying, distributing or modifying the Program (or any work based on the Program) you indicate your acceptance of this license to do so, and all its terms and conditions. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. 7. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of the license which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the license, you may choose any version ever published by the Free Software Foundation. 8. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS Appendix: How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to humanity, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 19yy This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. 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. See the GNU General Public License for more details. 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) 19xx name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (a program to direct compilers to make passes at assemblers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice That's all there is to it! --- The Artistic License 1.0 --- This software is Copyright (c) 2009 by Claus FErber . This is free software, licensed under: The Artistic License 1.0 The Artistic License Preamble The intent of this document is to state the conditions under which a Package may be copied, such that the Copyright Holder maintains some semblance of artistic control over the development of the package, while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, plus the right to make reasonable modifications. Definitions: - "Package" refers to the collection of files distributed by the Copyright Holder, and derivatives of that collection of files created through textual modification. - "Standard Version" refers to such a Package if it has not been modified, or has been modified in accordance with the wishes of the Copyright Holder. - "Copyright Holder" is whoever is named in the copyright or copyrights for the package. - "You" is you, if you're thinking about copying or distributing this Package. - "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, but only to the computing community at large as a market that must bear the fee.) - "Freely Available" means that no fee is charged for the item itself, though there may be fees involved in handling the item. It also means that recipients of the item may redistribute it under the same conditions they received it. 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, provided that you duplicate all of the original copyright notices and associated disclaimers. 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. A Package modified in such a way shall still be considered the Standard Version. 3. You may otherwise modify your copy of this Package in any way, provided that you insert a prominent notice in each changed file stating how and when you changed that file, and provided that you do at least ONE of the following: a) place your modifications in the Public Domain or otherwise make them Freely Available, such as by posting said modifications to Usenet or an equivalent medium, or placing the modifications on a major archive site such as ftp.uu.net, or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. b) use the modified Package only within your corporation or organization. c) rename any non-standard executables so the names do not conflict with standard executables, which must also be provided, and provide a separate manual page for each non-standard executable that clearly documents how it differs from the Standard Version. d) make other distribution arrangements with the Copyright Holder. 4. You may distribute the programs of this Package in object code or executable form, provided that you do at least ONE of the following: a) distribute a Standard Version of the executables and library files, together with instructions (in the manual page or equivalent) on where to get the Standard Version. b) accompany the distribution with the machine-readable source of the Package with your modifications. c) accompany any non-standard executables with their corresponding Standard Version executables, giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), together with instructions on where to get the Standard Version. d) make other distribution arrangements with the Copyright Holder. 5. You may charge a reasonable copying fee for any distribution of this Package. You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package. 7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package. 8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. The End Makefile.PL000444000765000024 103711313131276 20004 0ustar00cfaerberstaff000000000000Graphics-ColorNames-WWW-1.13# Note: this file was auto-generated by Module::Build::Compat version 0.35 use ExtUtils::MakeMaker; WriteMakefile ( 'PL_FILES' => {}, 'INSTALLDIRS' => 'site', 'NAME' => 'Graphics::ColorNames::WWW', 'EXE_FILES' => [], 'VERSION_FROM' => 'lib/Graphics/ColorNames/WWW.pm', 'PREREQ_PM' => { 'Test::More' => 0, 'Test::NoWarnings' => 0, 'Graphics::ColorNames' => '0.32' } ) ; MANIFEST000444000765000024 54711313131276 17150 0ustar00cfaerberstaff000000000000Graphics-ColorNames-WWW-1.13README Changes MANIFEST Build.PL Makefile.PL lib/Graphics/ColorNames/CSS.pm lib/Graphics/ColorNames/IE.pm lib/Graphics/ColorNames/SVG.pm lib/Graphics/ColorNames/WWW.pm t/10pod.t t/11pod_cover.t t/CSS.t t/IExplore.t t/SVG.t t/WWW.t t/WWW_CSS.t t/WWW_HTML.t t/WWW_IExplore.t t/WWW_Mozilla.t t/WWW_SVG.t LICENSE META.yml SIGNATURE Added here by Module::Build META.yml000444000765000024 151411313131276 17303 0ustar00cfaerberstaff000000000000Graphics-ColorNames-WWW-1.13--- name: Graphics-ColorNames-WWW version: 1.13 author: - 'Claus FErber ' abstract: WWW color names and equivalent RGB values license: perl resources: license: http://dev.perl.org/licenses/ build_requires: Test::More: 0 Test::NoWarnings: 0 requires: Graphics::ColorNames: 0.32 configure_requires: Module::Build: 0.35 provides: Graphics::ColorNames::CSS: file: lib/Graphics/ColorNames/CSS.pm version: 1.13 Graphics::ColorNames::IE: file: lib/Graphics/ColorNames/IE.pm version: 1.13 Graphics::ColorNames::SVG: file: lib/Graphics/ColorNames/SVG.pm version: 1.13 Graphics::ColorNames::WWW: file: lib/Graphics/ColorNames/WWW.pm version: 1.13 generated_by: Module::Build version 0.35 meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: 1.4 README000444000765000024 133611313131276 16714 0ustar00cfaerberstaff000000000000Graphics-ColorNames-WWW-1.13Graphics::ColorNames::WWW The "Graphics:ColorNames::WWW" module provides the full list of color names from various Web specifications and implementations. INSTALLATION To install this module type the following: perl Build.PL ./Build ./Build test ./Build install DEPENDENCIES This module requires these other modules and libraries: - Graphics::ColorNames AUTHOR Claus Färber Based on C by Robert Rothenberg. LICENSE Copyright © 2005-2009 Claus Fä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. SIGNATURE000644000765000024 401311313131300 17301 0ustar00cfaerberstaff000000000000Graphics-ColorNames-WWW-1.13This file contains message digests of all files listed in MANIFEST, signed via the Module::Signature module, version 0.55. To verify the content in this distribution, first make sure you have Module::Signature installed, then type: % cpansign -v It will check each file's integrity, as well as the signature's validity. If "==> Signature verified OK! <==" is not displayed, the distribution may already have been compromised, and you should not run its Makefile.PL or Build.PL. -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 SHA1 429476e068ac049695af4561b08ef6673a1da2e3 Build.PL SHA1 20cf5d15a1eac09ee5ae199b99be2e256a6760fc Changes SHA1 276c6f551968687e626a539e7d33bb1c9929f528 LICENSE SHA1 49a8d4a8e784ad5fe0f3283bdc78c8bbd00dd47f MANIFEST SHA1 aa8538b9a0e94150c5b8ee07dd8bf2fe5bd03cad META.yml SHA1 723992d2e7ea02c46a5ca8aa01840d68813d3c4c Makefile.PL SHA1 75a736a35800e12d8be3eaaa62e3b6376ad63395 README SHA1 91c7dd9c9499efdecc5e1669700ec6f5e959a718 lib/Graphics/ColorNames/CSS.pm SHA1 b41023a3170ce0b38b2559b3b5c49b1de887ccec lib/Graphics/ColorNames/IE.pm SHA1 a556171c7de14882ba52b551c322a13d376f5948 lib/Graphics/ColorNames/SVG.pm SHA1 fe7730f128ec49225a2fdcbfc5f0571951680e13 lib/Graphics/ColorNames/WWW.pm SHA1 056063d18c3f48338620bbff698f81f91f2ea4d0 t/10pod.t SHA1 d1cc4bffb520930d347a32d8ed043e4736acd8e4 t/11pod_cover.t SHA1 74f2bc2b75e5619a13f3078abde72b247f959017 t/CSS.t SHA1 b8f11f28d1b277235b9b126354d7f174fec3a225 t/IExplore.t SHA1 2c172ab132e7c90671bda28211fe7cfb31b085e4 t/SVG.t SHA1 ccc5f1e1414e767471b4c577509042712317fe29 t/WWW.t SHA1 e3a60563d58af0c9cd9c82af42b5e055e3ddd11c t/WWW_CSS.t SHA1 92dcb6c4b4b7ffa1fe75f6cebb3b7eba8db266ed t/WWW_HTML.t SHA1 a2ad4df0d0410452bfccbfd192a587ae86ec33f1 t/WWW_IExplore.t SHA1 a63acd583962b27003b5cff5e886c8b0eff130ff t/WWW_Mozilla.t SHA1 a3141e89c67d0a60d4ba3bbb70b12ad0d67411e6 t/WWW_SVG.t -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (Darwin) iEYEARECAAYFAksssr4ACgkQSKUOY2OWgPCzaQCfSigcexWgQFT6bGWfs84KUgW/ 5mwAnjsA3YoIRdeB6MN0w2rtEcaleW9C =jliw -----END PGP SIGNATURE----- lib000755000765000024 011313131276 16442 5ustar00cfaerberstaff000000000000Graphics-ColorNames-WWW-1.13Graphics000755000765000024 011313131276 20202 5ustar00cfaerberstaff000000000000Graphics-ColorNames-WWW-1.13/libColorNames000755000765000024 011313131276 22244 5ustar00cfaerberstaff000000000000Graphics-ColorNames-WWW-1.13/lib/GraphicsCSS.pm000444000765000024 226011313131276 23367 0ustar00cfaerberstaff000000000000Graphics-ColorNames-WWW-1.13/lib/Graphics/ColorNamespackage Graphics::ColorNames::CSS; require 5.006; use strict; use warnings; use Graphics::ColorNames::WWW(); our $VERSION = '1.13'; *NamesRgbTable = \&Graphics::ColorNames::WWW::NamesRgbTable; 1; =head1 NAME Graphics::ColorNames::CSS - CSS color names and equivalent RGB values =head1 SYNOPSIS require Graphics::ColorNames::CSS; $NameTable = Graphics::ColorNames::CSS->NamesRgbTable(); $RgbBlack = $NameTable->{black}; =head1 DESCRIPTION This module defines color names and their associated RGB values from the CSS Color Module Level 3 W3C Working Draft of 2008-07-21. It is currently an alias for L. This may change in the future. It is recommended to use the WWW module, which will always implement a superset of this module. See the documentation of L for information how to use this module. =head1 SEE ALSO L, CSS Color Module Level 3 (L) =head1 AUTHOR Claus FErber =head1 LICENSE Copyright 2005-2009 Claus FErber. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut IE.pm000444000765000024 1773311313131276 23267 0ustar00cfaerberstaff000000000000Graphics-ColorNames-WWW-1.13/lib/Graphics/ColorNamespackage Graphics::ColorNames::IE; require 5.006; use strict; use warnings; our $VERSION = '1.13'; sub NamesRgbTable() { use integer; return { (lc 'AliceBlue') => 0xF0F8FF, # 240,248,255 (lc 'AntiqueWhite') => 0xFAEBD7, # 250,235,215 (lc 'Aqua') => 0x00FFFF, # 0,255,255 (lc 'Aquamarine') => 0x7FFFD4, # 127,255,212 (lc 'Azure') => 0xF0FFFF, # 240,255,255 (lc 'Beige') => 0xF5F5DC, # 245,245,220 (lc 'Bisque') => 0xFFE4C4, # 255,228,196 (lc 'Black') => 0x000000, # 0,0,0 (lc 'BlanchedAlmond') => 0xFFEBCD, # 255,235,205 (lc 'Blue') => 0x0000FF, # 0,0,255 (lc 'BlueViolet') => 0x8A2BE2, # 138,43,226 (lc 'Brown') => 0xA52A2A, # 165,42,42 (lc 'BurlyWood') => 0xDEB887, # 222,184,135 (lc 'CadetBlue') => 0x5F9EA0, # 95,158,160 (lc 'Chartreuse') => 0x7FFF00, # 127,255,0 (lc 'Chocolate') => 0xD2691E, # 210,105,30 (lc 'Coral') => 0xFF7F50, # 255,127,80 (lc 'CornflowerBlue') => 0x6495ED, # 100,149,237 (lc 'Cornsilk') => 0xFFF8DC, # 255,248,220 (lc 'Crimson') => 0xDC143C, # 220,20,60 (lc 'Cyan') => 0x00FFFF, # 0,255,255 (lc 'DarkBlue') => 0x00008B, # 0,0,139 (lc 'DarkCyan') => 0x008B8B, # 0,139,139 (lc 'DarkGoldenrod') => 0xB8860B, # 184,134,11 (lc 'DarkGray') => 0xA9A9A9, # 169,169,169 (lc 'DarkGreen') => 0x006400, # 0,100,0 (lc 'DarkKhaki') => 0xBDB76B, # 189,183,107 (lc 'DarkMagenta') => 0x8B008B, # 139,0,139 (lc 'DarkOliveGreen') => 0x556B2F, # 85,107,47 (lc 'DarkOrange') => 0xFF8C00, # 255,140,0 (lc 'DarkOrchid') => 0x9932CC, # 153,50,204 (lc 'DarkRed') => 0x8B0000, # 139,0,0 (lc 'DarkSalmon') => 0xE9967A, # 233,150,122 (lc 'DarkSeaGreen') => 0x8FBC8F, # 143,188,143 (lc 'DarkSlateBlue') => 0x483D8B, # 72,61,139 (lc 'DarkSlateGray') => 0x2F4F4F, # 47,79,79 (lc 'DarkTurquoise') => 0x00CED1, # 0,206,209 (lc 'DarkViolet') => 0x9400D3, # 148,0,211 (lc 'DeepPink') => 0xFF1493, # 255,20,147 (lc 'DeepSkyBlue') => 0x00BFFF, # 0,191,255 (lc 'DimGray') => 0x696969, # 105,105,105 (lc 'DodgerBlue') => 0x1E90FF, # 30,144,255 (lc 'FireBrick') => 0xB22222, # 178,34,34 (lc 'FloralWhite') => 0xFFFAF0, # 255,250,240 (lc 'ForestGreen') => 0x228B22, # 34,139,34 (lc 'Fuchsia') => 0xFF00FF, # 255,0,255 (lc 'Gainsboro') => 0xDCDCDC, # 220,220,220 (lc 'GhostWhite') => 0xF8F8FF, # 248,248,255 (lc 'Gold') => 0xFFD700, # 255,215,0 (lc 'Goldenrod') => 0xDAA520, # 218,165,32 (lc 'Gray') => 0x808080, # 128,128,128 ## NB: Grey is missing! (lc 'Green') => 0x008000, # 0,128,0 (lc 'GreenYellow') => 0xADFF2F, # 173,255,47 (lc 'Honeydew') => 0xF0FFF0, # 240,255,240 (lc 'HotPink') => 0xFF69B4, # 255,105,180 (lc 'IndianRed') => 0xCD5C5C, # 205,92,92 (lc 'Indigo') => 0x4B0082, # 75,0,130 (lc 'Ivory') => 0xFFFFF0, # 255,255,240 (lc 'Khaki') => 0xF0E68C, # 240,230,140 (lc 'Lavender') => 0xE6E6FA, # 230,230,250 (lc 'LavenderBlush') => 0xFFF0F5, # 255,240,245 (lc 'LawnGreen') => 0x7CFC00, # 124,252,0 (lc 'LemonChiffon') => 0xFFFACD, # 255,250,205 (lc 'LightBlue') => 0xADD8E6, # 173,216,230 (lc 'LightCoral') => 0xF08080, # 240,128,128 (lc 'LightCyan') => 0xE0FFFF, # 224,255,255 (lc 'LightGoldenrodYellow') => 0xFAFAD2, # 250,250,210 (lc 'LightGreen') => 0x90EE90, # 144,238,144 (lc 'LightGrey') => 0xD3D3D3, # 211,211,211 (lc 'LightPink') => 0xFFB6C1, # 255,182,193 (lc 'LightSalmon') => 0xFFA07A, # 255,160,122 (lc 'LightSeaGreen') => 0x20B2AA, # 32,178,170 (lc 'LightSkyBlue') => 0x87CEFA, # 135,206,250 (lc 'LightSlateGray') => 0x778899, # 119,136,153 (lc 'LightSteelBlue') => 0xB0C4DE, # 176,196,222 (lc 'LightYellow') => 0xFFFFE0, # 255,255,224 (lc 'Lime') => 0x00FF00, # 0,255,0 (lc 'LimeGreen') => 0x32CD32, # 50,205,50 (lc 'Linen') => 0xFAF0E6, # 250,240,230 (lc 'Magenta') => 0xFF00FF, # 255,0,255 (lc 'Maroon') => 0x800000, # 128,0,0 (lc 'MediumAquamarine') => 0x66CDAA, # 102,205,170 (lc 'MediumBlue') => 0x0000CD, # 0,0,205 (lc 'MediumOrchid') => 0xBA55D3, # 186,85,211 (lc 'MediumPurple') => 0x9370DB, # 147,112,219 (lc 'MediumSeaGreen') => 0x3CB371, # 60,179,113 (lc 'MediumSlateBlue') => 0x7B68EE, # 123,104,238 (lc 'MediumSpringGreen') => 0x00FA9A, # 0,250,154 (lc 'MediumTurquoise') => 0x48D1CC, # 72,209,204 (lc 'MediumVioletRed') => 0xC71585, # 199,21,133 (lc 'MidnightBlue') => 0x191970, # 25,25,112 (lc 'MintCream') => 0xF5FFFA, # 245,255,250 (lc 'MistyRose') => 0xFFE4E1, # 255,228,225 (lc 'Moccasin') => 0xFFE4B5, # 255,228,181 (lc 'NavajoWhite') => 0xFFDEAD, # 255,222,173 (lc 'Navy') => 0x000080, # 0,0,128 (lc 'OldLace') => 0xFDF5E6, # 253,245,230 (lc 'Olive') => 0x808000, # 128,128,0 (lc 'OliveDrab') => 0x6B8E23, # 107,142,35 (lc 'Orange') => 0xFFA500, # 255,165,0 (lc 'OrangeRed') => 0xFF4500, # 255,69,0 (lc 'Orchid') => 0xDA70D6, # 218,112,214 (lc 'PaleGoldenrod') => 0xEEE8AA, # 238,232,170 (lc 'PaleGreen') => 0x98FB98, # 152,251,152 (lc 'PaleTurquoise') => 0xAFEEEE, # 175,238,238 (lc 'PaleVioletRed') => 0xDB7093, # 219,112,147 (lc 'PapayaWhip') => 0xFFEFD5, # 255,239,213 (lc 'PeachPuff') => 0xFFDAB9, # 255,218,185 (lc 'Peru') => 0xCD853F, # 205,133,63 (lc 'Pink') => 0xFFC0CB, # 255,192,203 (lc 'Plum') => 0xDDA0DD, # 221,160,221 (lc 'PowderBlue') => 0xB0E0E6, # 176,224,230 (lc 'Purple') => 0x800080, # 128,0,128 (lc 'Red') => 0xFF0000, # 255,0,0 (lc 'RosyBrown') => 0xBC8F8F, # 188,143,143 (lc 'RoyalBlue') => 0x4169E1, # 65,105,225 (lc 'SaddleBrown') => 0x8B4513, # 139,69,19 (lc 'Salmon') => 0xFA8072, # 250,128,114 (lc 'SandyBrown') => 0xF4A460, # 244,164,96 (lc 'SeaGreen') => 0x2E8B57, # 46,139,87 (lc 'Seashell') => 0xFFF5EE, # 255,245,238 (lc 'Sienna') => 0xA0522D, # 160,82,45 (lc 'Silver') => 0xC0C0C0, # 192,192,192 (lc 'SkyBlue') => 0x87CEEB, # 135,206,235 (lc 'SlateBlue') => 0x6A5ACD, # 106,90,205 (lc 'SlateGray') => 0x708090, # 112,128,144 (lc 'Snow') => 0xFFFAFA, # 255,250,250 (lc 'SpringGreen') => 0x00FF7F, # 0,255,127 (lc 'SteelBlue') => 0x4682B4, # 70,130,180 (lc 'Tan') => 0xD2B48C, # 210,180,140 (lc 'Teal') => 0x008080, # 0,128,128 (lc 'Thistle') => 0xD8BFD8, # 216,191,216 (lc 'Tomato') => 0xFF6347, # 255,99,71 (lc 'Turquoise') => 0x40E0D0, # 64,224,208 (lc 'Violet') => 0xEE82EE, # 238,130,238 (lc 'Wheat') => 0xF5DEB3, # 245,222,179 (lc 'White') => 0xFFFFFF, # 255,255,255 (lc 'WhiteSmoke') => 0xF5F5F5, # 245,245,245 (lc 'Yellow') => 0xFFFF00, # 255,255,0 (lc 'YellowGreen') => 0x9ACD32, # 154,205,50 }; } 1; =head1 NAME Graphics::ColorNames::IE - MS Internet Explorer color names and equivalent RGB values =head1 SYNOPSIS require Graphics::ColorNames::IE; $NameTable = Graphics::ColorNames::IE->NamesRgbTable(); $RgbBlack = $NameTable->{black}; =head1 DESCRIPTION This module defines color names and their associated RGB values recognized by Microsoft Internet Explorer. This currently is a subset of the colors defined by CSS and SVG specifications. See the documentation of L for information how to use this module. =head2 NOTE Although Microsoft calls them "X11 color names", some of them are not identical to the definitions in the X Specification. =head1 SEE ALSO C, MSDN =head1 AUTHOR Claus FErber Based on C by Robert Rothenberg. =head1 LICENSE Copyright 2005-2009 Claus FErber. Copyright 2001-2004 Robert Rothenberg. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut SVG.pm000444000765000024 233711313131276 23403 0ustar00cfaerberstaff000000000000Graphics-ColorNames-WWW-1.13/lib/Graphics/ColorNamespackage Graphics::ColorNames::SVG; require 5.006; use strict; use warnings; use Graphics::ColorNames::WWW(); our $VERSION = '1.13'; *NamesRgbTable = \&Graphics::ColorNames::WWW::NamesRgbTable; 1; =head1 NAME Graphics::ColorNames::SVG - SVG color names and equivalent RGB values =head1 SYNOPSIS require Graphics::ColorNames::SVG; $NameTable = Graphics::ColorNames::SVG->NamesRgbTable(); $RgbBlack = $NameTable->{black}; =head1 DESCRIPTION This module defines color names and their associated RGB values from the SVG 1.2 Specification. It is currently an alias for L. This may change in the future. It is recommended to use the WWW module, which will always implement a superset of this module. See the documentation of L for information how to use this module. =head1 SEE ALSO L, Scalable Vector Graphics (SVG) 1.1 Specification, Section 4.2 (L) =head1 AUTHOR Claus FErber =head1 LICENSE Copyright 2008-2009 Claus FErber. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut WWW.pm000444000765000024 2141511313131276 23446 0ustar00cfaerberstaff000000000000Graphics-ColorNames-WWW-1.13/lib/Graphics/ColorNamespackage Graphics::ColorNames::WWW; require 5.006; use strict; use warnings; our $VERSION = '1.13'; sub NamesRgbTable() { sub _mk_rgb { ($_[0] << 16) + ($_[1] << 8) + ($_[2]) } use integer; return { 'aliceblue' => _mk_rgb(240, 248, 255), 'antiquewhite' => _mk_rgb(250, 235, 215), 'aqua' => _mk_rgb( 0, 255, 255), 'aquamarine' => _mk_rgb(127, 255, 212), 'azure' => _mk_rgb(240, 255, 255), 'beige' => _mk_rgb(245, 245, 220), 'bisque' => _mk_rgb(255, 228, 196), 'black' => _mk_rgb( 0, 0, 0), 'blanchedalmond' => _mk_rgb(255, 235, 205), 'blue' => _mk_rgb( 0, 0, 255), 'blueviolet' => _mk_rgb(138, 43, 226), 'brown' => _mk_rgb(165, 42, 42), 'burlywood' => _mk_rgb(222, 184, 135), 'cadetblue' => _mk_rgb( 95, 158, 160), 'chartreuse' => _mk_rgb(127, 255, 0), 'chocolate' => _mk_rgb(210, 105, 30), 'coral' => _mk_rgb(255, 127, 80), 'cornflowerblue' => _mk_rgb(100, 149, 237), 'cornsilk' => _mk_rgb(255, 248, 220), 'crimson' => _mk_rgb(220, 20, 60), 'cyan' => _mk_rgb( 0, 255, 255), 'darkblue' => _mk_rgb( 0, 0, 139), 'darkcyan' => _mk_rgb( 0, 139, 139), 'darkgoldenrod' => _mk_rgb(184, 134, 11), 'darkgray' => _mk_rgb(169, 169, 169), 'darkgreen' => _mk_rgb( 0, 100, 0), 'darkgrey' => _mk_rgb(169, 169, 169), 'darkkhaki' => _mk_rgb(189, 183, 107), 'darkmagenta' => _mk_rgb(139, 0, 139), 'darkolivegreen' => _mk_rgb( 85, 107, 47), 'darkorange' => _mk_rgb(255, 140, 0), 'darkorchid' => _mk_rgb(153, 50, 204), 'darkred' => _mk_rgb(139, 0, 0), 'darksalmon' => _mk_rgb(233, 150, 122), 'darkseagreen' => _mk_rgb(143, 188, 143), 'darkslateblue' => _mk_rgb( 72, 61, 139), 'darkslategray' => _mk_rgb( 47, 79, 79), 'darkslategrey' => _mk_rgb( 47, 79, 79), 'darkturquoise' => _mk_rgb( 0, 206, 209), 'darkviolet' => _mk_rgb(148, 0, 211), 'deeppink' => _mk_rgb(255, 20, 147), 'deepskyblue' => _mk_rgb( 0, 191, 255), 'dimgray' => _mk_rgb(105, 105, 105), 'dimgrey' => _mk_rgb(105, 105, 105), 'dodgerblue' => _mk_rgb( 30, 144, 255), 'firebrick' => _mk_rgb(178, 34, 34), 'floralwhite' => _mk_rgb(255, 250, 240), 'forestgreen' => _mk_rgb( 34, 139, 34), 'fuchsia' => 0xff00ff, # "fuscia" is incorrect but common 'fuscia' => 0xff00ff, # mis-spelling... 'gainsboro' => _mk_rgb(220, 220, 220), 'ghostwhite' => _mk_rgb(248, 248, 255), 'gold' => _mk_rgb(255, 215, 0), 'goldenrod' => _mk_rgb(218, 165, 32), 'gray' => _mk_rgb(128, 128, 128), 'grey' => _mk_rgb(128, 128, 128), 'green' => _mk_rgb( 0, 128, 0), 'greenyellow' => _mk_rgb(173, 255, 47), 'honeydew' => _mk_rgb(240, 255, 240), 'hotpink' => _mk_rgb(255, 105, 180), 'indianred' => _mk_rgb(205, 92, 92), 'indigo' => _mk_rgb( 75, 0, 130), 'ivory' => _mk_rgb(255, 255, 240), 'khaki' => _mk_rgb(240, 230, 140), 'lavender' => _mk_rgb(230, 230, 250), 'lavenderblush' => _mk_rgb(255, 240, 245), 'lawngreen' => _mk_rgb(124, 252, 0), 'lemonchiffon' => _mk_rgb(255, 250, 205), 'lightblue' => _mk_rgb(173, 216, 230), 'lightcoral' => _mk_rgb(240, 128, 128), 'lightcyan' => _mk_rgb(224, 255, 255), 'lightgoldenrodyellow' => _mk_rgb(250, 250, 210), 'lightgray' => _mk_rgb(211, 211, 211), 'lightgreen' => _mk_rgb(144, 238, 144), 'lightgrey' => _mk_rgb(211, 211, 211), 'lightpink' => _mk_rgb(255, 182, 193), 'lightsalmon' => _mk_rgb(255, 160, 122), 'lightseagreen' => _mk_rgb( 32, 178, 170), 'lightskyblue' => _mk_rgb(135, 206, 250), 'lightslategray' => _mk_rgb(119, 136, 153), 'lightslategrey' => _mk_rgb(119, 136, 153), 'lightsteelblue' => _mk_rgb(176, 196, 222), 'lightyellow' => _mk_rgb(255, 255, 224), 'lime' => _mk_rgb( 0, 255, 0), 'limegreen' => _mk_rgb( 50, 205, 50), 'linen' => _mk_rgb(250, 240, 230), 'magenta' => _mk_rgb(255, 0, 255), 'maroon' => _mk_rgb(128, 0, 0), 'mediumaquamarine' => _mk_rgb(102, 205, 170), 'mediumblue' => _mk_rgb( 0, 0, 205), 'mediumorchid' => _mk_rgb(186, 85, 211), 'mediumpurple' => _mk_rgb(147, 112, 219), 'mediumseagreen' => _mk_rgb( 60, 179, 113), 'mediumslateblue' => _mk_rgb(123, 104, 238), 'mediumspringgreen' => _mk_rgb( 0, 250, 154), 'mediumturquoise' => _mk_rgb( 72, 209, 204), 'mediumvioletred' => _mk_rgb(199, 21, 133), 'midnightblue' => _mk_rgb( 25, 25, 112), 'mintcream' => _mk_rgb(245, 255, 250), 'mistyrose' => _mk_rgb(255, 228, 225), 'moccasin' => _mk_rgb(255, 228, 181), 'navajowhite' => _mk_rgb(255, 222, 173), 'navy' => _mk_rgb( 0, 0, 128), 'oldlace' => _mk_rgb(253, 245, 230), 'olive' => _mk_rgb(128, 128, 0), 'olivedrab' => _mk_rgb(107, 142, 35), 'orange' => _mk_rgb(255, 165, 0), 'orangered' => _mk_rgb(255, 69, 0), 'orchid' => _mk_rgb(218, 112, 214), 'palegoldenrod' => _mk_rgb(238, 232, 170), 'palegreen' => _mk_rgb(152, 251, 152), 'paleturquoise' => _mk_rgb(175, 238, 238), 'palevioletred' => _mk_rgb(219, 112, 147), 'papayawhip' => _mk_rgb(255, 239, 213), 'peachpuff' => _mk_rgb(255, 218, 185), 'peru' => _mk_rgb(205, 133, 63), 'pink' => _mk_rgb(255, 192, 203), 'plum' => _mk_rgb(221, 160, 221), 'powderblue' => _mk_rgb(176, 224, 230), 'purple' => _mk_rgb(128, 0, 128), 'red' => _mk_rgb(255, 0, 0), 'rosybrown' => _mk_rgb(188, 143, 143), 'royalblue' => _mk_rgb( 65, 105, 225), 'saddlebrown' => _mk_rgb(139, 69, 19), 'salmon' => _mk_rgb(250, 128, 114), 'sandybrown' => _mk_rgb(244, 164, 96), 'seagreen' => _mk_rgb( 46, 139, 87), 'seashell' => _mk_rgb(255, 245, 238), 'sienna' => _mk_rgb(160, 82, 45), 'silver' => _mk_rgb(192, 192, 192), 'skyblue' => _mk_rgb(135, 206, 235), 'slateblue' => _mk_rgb(106, 90, 205), 'slategray' => _mk_rgb(112, 128, 144), 'slategrey' => _mk_rgb(112, 128, 144), 'snow' => _mk_rgb(255, 250, 250), 'springgreen' => _mk_rgb( 0, 255, 127), 'steelblue' => _mk_rgb( 70, 130, 180), 'tan' => _mk_rgb(210, 180, 140), 'teal' => _mk_rgb( 0, 128, 128), 'thistle' => _mk_rgb(216, 191, 216), '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 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 and L 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 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, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C (these are deprecated in CSS3) =head1 SEE ALSO L, L, L =head1 AUTHOR Claus FErber Based on C by Robert Rothenberg. =head1 LICENSE Copyright 2005-2009 Claus FErber. 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 t000755000765000024 011313131276 16137 5ustar00cfaerberstaff000000000000Graphics-ColorNames-WWW-1.1310pod.t000444000765000024 21711313131276 17364 0ustar00cfaerberstaff000000000000Graphics-ColorNames-WWW-1.13/tuse strict; use Test::More; eval "use Test::Pod 1.00"; plan skip_all => "Test::Pod 1.00 required for testing POD" if $@; all_pod_files_ok(); 11pod_cover.t000444000765000024 70211313131276 20562 0ustar00cfaerberstaff000000000000Graphics-ColorNames-WWW-1.13/tuse strict; use Test::More; eval "use Test::Pod::Coverage;"; plan skip_all => "Test::Pod::Coverage required for testing POD coverage" if $@; plan tests => 4; my $trm = { 'trustme' => [ 'NamesRgbTable' ] }; # for use by base module pod_coverage_ok( 'Graphics::ColorNames::WWW', $trm ); pod_coverage_ok( 'Graphics::ColorNames::SVG', $trm ); pod_coverage_ok( 'Graphics::ColorNames::IE', $trm ); pod_coverage_ok( 'Graphics::ColorNames::CSS', $trm ); CSS.t000444000765000024 45611313131276 17076 0ustar00cfaerberstaff000000000000Graphics-ColorNames-WWW-1.13/tuse Test::More tests => 6; use Test::NoWarnings; use strict; use Carp; use Graphics::ColorNames 0.20, qw( hex2tuple tuple2hex ); ok(1); tie my %colors, 'Graphics::ColorNames', 'CSS'; ok(1); ok(exists($colors{"fuchsia"})); ok(exists($colors{"fuscia"})); ok($colors{"fuscia"} eq $colors{"fuchsia"}); IExplore.t000444000765000024 72311313131276 20172 0ustar00cfaerberstaff000000000000Graphics-ColorNames-WWW-1.13/tuse Test::More tests => 140 + 7; use Test::NoWarnings; use strict; use Carp; use Graphics::ColorNames 0.20, qw( hex2tuple tuple2hex ); ok(1); tie my %colors, 'Graphics::ColorNames', 'IE'; ok(1); is(keys %colors, 140); my $count = 0; foreach my $name (keys %colors) { my @RGB = hex2tuple( $colors{$name} ); is(tuple2hex(@RGB), $colors{$name} ); } is(uc $colors{'white'}, 'FFFFFF'); is(uc $colors{'blue'}, '0000FF'); is(uc $colors{'cyan'}, '00FFFF'); SVG.t000444000765000024 110211313131276 17112 0ustar00cfaerberstaff000000000000Graphics-ColorNames-WWW-1.13/tuse Test::More tests => 10 + 148; use Test::NoWarnings; use strict; use Carp; use Graphics::ColorNames 0.20, qw( hex2tuple tuple2hex ); ok(1); tie my %colors, 'Graphics::ColorNames', 'SVG'; ok(1); is(keys %colors, 148); my $count = 0; foreach my $name (keys %colors) { my @RGB = hex2tuple( $colors{$name} ); is(tuple2hex(@RGB), $colors{$name} ); } ok(exists($colors{"fuchsia"})); ok(exists($colors{"fuscia"})); ok($colors{"fuscia"} eq $colors{"fuchsia"}); is(uc $colors{'white'}, 'FFFFFF'); is(uc $colors{'blue'}, '0000FF'); is(uc $colors{'cyan'}, '00FFFF'); WWW.t000444000765000024 45611313131276 17132 0ustar00cfaerberstaff000000000000Graphics-ColorNames-WWW-1.13/tuse Test::More tests => 6; use Test::NoWarnings; use strict; use Carp; use Graphics::ColorNames 0.20, qw( hex2tuple tuple2hex ); ok(1); tie my %colors, 'Graphics::ColorNames', 'WWW'; ok(1); ok(exists($colors{"fuchsia"})); ok(exists($colors{"fuscia"})); ok($colors{"fuscia"} eq $colors{"fuchsia"}); WWW_CSS.t000444000765000024 56611313131276 17644 0ustar00cfaerberstaff000000000000Graphics-ColorNames-WWW-1.13/tuse Test::More tests => 148 + 1; use Test::NoWarnings; use strict; use Carp; use Graphics::ColorNames 0.20, qw( hex2tuple tuple2hex ); tie my %col_www, 'Graphics::ColorNames', 'WWW'; tie my %colors, 'Graphics::ColorNames', 'CSS'; my $count = 0; foreach my $name (keys %colors) { my @RGB = hex2tuple( $colors{$name} ); is(tuple2hex(@RGB), $col_www{$name} ); } WWW_HTML.t000444000765000024 61211313131276 17750 0ustar00cfaerberstaff000000000000Graphics-ColorNames-WWW-1.13/tuse Test::More tests => 17 + 1; use Test::NoWarnings; use strict; use Carp; use Graphics::ColorNames 0.20, qw( hex2tuple tuple2hex ); tie my %colors, 'Graphics::ColorNames', 'HTML'; tie my %col_www, 'Graphics::ColorNames', 'WWW'; my $count = 0; foreach my $name (keys %colors) { my @RGB = hex2tuple( $colors{$name} ); is($name.'-'.tuple2hex(@RGB), $name.'-'.$col_www{$name} ); } WWW_IExplore.t000444000765000024 57211313131276 20740 0ustar00cfaerberstaff000000000000Graphics-ColorNames-WWW-1.13/tuse Test::More tests => 193 - 53 + 1; use Test::NoWarnings; use strict; use Carp; use Graphics::ColorNames 0.20, qw( hex2tuple tuple2hex ); tie my %col_www, 'Graphics::ColorNames', 'WWW'; tie my %colors, 'Graphics::ColorNames', 'IE'; my $count = 0; foreach my $name (keys %colors) { my @RGB = hex2tuple( $colors{$name} ); is(tuple2hex(@RGB), $col_www{$name} ); } WWW_Mozilla.t000444000765000024 76011313131276 20617 0ustar00cfaerberstaff000000000000Graphics-ColorNames-WWW-1.13/tuse Test::More tests => 147; use Test::NoWarnings; use strict; use Carp; SKIP: { eval { require Graphics::ColorNames::Mozilla; }; skip ("Graphics::ColorNames::Mozilla not installed", 146) if $@; use Graphics::ColorNames 0.20, qw( hex2tuple tuple2hex ); tie my %col_www, 'Graphics::ColorNames', 'WWW'; tie my %colors, 'Graphics::ColorNames', 'Mozilla'; foreach my $name (keys %colors) { my @RGB = hex2tuple( $colors{$name} ); is(tuple2hex(@RGB), $col_www{$name} ); } } WWW_SVG.t000444000765000024 56611313131276 17653 0ustar00cfaerberstaff000000000000Graphics-ColorNames-WWW-1.13/tuse Test::More tests => 148 + 1; use Test::NoWarnings; use strict; use Carp; use Graphics::ColorNames 0.20, qw( hex2tuple tuple2hex ); tie my %col_www, 'Graphics::ColorNames', 'WWW'; tie my %colors, 'Graphics::ColorNames', 'SVG'; my $count = 0; foreach my $name (keys %colors) { my @RGB = hex2tuple( $colors{$name} ); is(tuple2hex(@RGB), $col_www{$name} ); }