NAME Graphics::ColorNames - defines RGB values for common color names REQUIREMENTS `Graphics::ColorNames' should work on Perl 5.005. It uses only standard modules. Installation Installation is pretty standard: perl Makefile.PL make make test make install HISTORY Revision history since v0.20: 0.22 15 Mar 2001 - added example on how to add your own naming schema - schema files (X.pm, HTML.pm, Windows.pm) were stored in the wrong subdirectories - removed test.pl and double-testing 0.21 12 Mar 2001 - fixed an issue with Test::Harness expecting t/*.t tests 0.20 11 Mar 2001 - no longer a Tie::Hash - additional example in POD - added Test::Harness and a better test suite - commented-out 'use warnings' in modules - addition of tuple2hex function - changed the way files are included in the distribution SYNOPSIS use Graphics::ColorNames qw( hex2tuple tuple2hex ); tie %NameTable, 'Graphics::ColorNames', 'X'; my $rgbhex = $NameTable{'green'}; # returns '00ff00' my $rgbhex = tuple2hex( 0, 255, 0 ) # returns '00ff00' my @rgbtup = hex2tuple( $rgbhex ); # returns (0, 255, 0) DESCRIPTION This module defines RGB values for common color names. The intention is to (1) provide a common module that authors can use with other modules to specify colors; and (2) free module authors from having to "re-invent the wheel" whenever they decide to give the users the option of specifying a color by name rather than RGB value. A more detailed description with documentation can be found in the module's POD. AUTHOR Robert Rothenberg LICENSE Copyright (c) 2001 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.