File: README

package info (click to toggle)
libgraphics-colornames-perl 1.06-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 592 kB
  • ctags: 90
  • sloc: perl: 1,380; makefile: 11
file content (72 lines) | stat: -rw-r--r-- 2,131 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
NAME
    Graphics::ColorNames - defines RGB values for common color names

REQUIREMENTS
    `Graphics::ColorNames' should work on Perl 5.6.0.

    It requires the following non-standard modules:

      Module::Load

  Installation

    Installation is pretty standard:

      perl Makefile.PL
      make
      make test
      make install

    (On Windows platforms you should use nmake instead.)

    Using Build.PL (if you have Module::Build installed):

      perl Build.PL
      perl Build
      perl Build test
      perl Build install    

SYNOPSIS
      use Graphics::ColorNames qw( hex2tuple tuple2hex );

      tie %NameTable, 'Graphics::ColorNames', 'X';

      my $rgbhex1 = $NameTable{'green'};    # returns '00ff00'
      my $rgbhex2 = tuple2hex( 0, 255, 0 ); # returns '00ff00'
      my @rgbtup  = hex2tuple( $rgbhex );   # returns (0, 255, 0)

      my $rgbhex3 = $NameTable{'#123abc'};  # returns '123abc'
      my $rgbhex4 = $NameTable{'123abc'};   # returns '123abc'

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.

HISTORY
    Revision history since the last release:

    1.06 Tue Mar 29 2005
	- cleaned up tests
	- added DSLIP information to POD
	- added Test::Pod tests
        - added Pod::Coverage tests
	- minor documentation changes
	- uses Test::Prereq to test distro prereqs
	- added SIGNATURE to distribution

    A more detailed revision history is available in the Changes file.

AUTHOR
    Robert Rothenberg <rrwo at cpan.org>

LICENSE
    Copyright (c) 2001-2005 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.